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

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

Examples

TRUE
#> [1] TRUE