krsa_violin_plot_grouped: Generates grouped violin plots based on peptides signals...

View source: R/krsa_violin_plot_grouped.R

krsa_violin_plot_groupedR Documentation

Generates grouped violin plots based on peptides signals intensities with t tests options

Description

Takes in the scaled dataset from krsa_scaleModel() and plot violin figures using ggplot2

Usage

krsa_violin_plot_grouped(
  data,
  peptides,
  grp_comp = NULL,
  groups = NULL,
  test = F,
  test_method = "wilcox.test",
  violin = TRUE,
  dots = FALSE,
  lines = FALSE,
  avg_line = T,
  ...
)

Arguments

data

the scaled dataset from krsa_scaleModel

peptides

vector of peptides

grp_comp

list of group comparison names

groups

(optional) a vector of group names

test

perform two group test

test_method

type of test (default is wilcox.test)

violin

add violin layer

dots

add dotplot layer

lines

add lines layer

avg_line

draw averaged line across the two groups

...

arguments passed to ggsignif

Value

ggplot figure

See Also

Other plots: krsa_ball_model(), krsa_coverage_plot(), krsa_curve_plot(), krsa_cv_plot(), krsa_heatmap(), krsa_heatmap_grouped(), krsa_histogram_plot(), krsa_reverse_krsa_plot(), krsa_violin_plot(), krsa_waterfall(), krsa_zscores_plot()

Examples

TRUE

CogDisResLab/KRSA documentation built on Nov. 9, 2024, 3:24 p.m.