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

krsa_violin_plot(
  data,
  peptides,
  facet_factor,
  facet = T,
  samples = NULL,
  groups = NULL,
  show_legend = F
)

Arguments

data

the scaled dataset from krsa_scaleModel

peptides

vector of peptides

facet_factor

Column used to facet by. Will be used in facet_wrap(). Needs argument facet to be True.

facet

boolean to facet the plot by a variable

samples

(optional) a vector of sample names

groups

(optional) a vector of group names

show_legend

to show legend (default = FALSE)

Value

ggplot figure

Examples

TRUE
#> [1] TRUE