plot Violin plot of sd CV or mean

plot_stat_violin(pdata, config, stat = c("CV", "meanAbundance", "sd"))

Arguments

pdata

data.frame

config

AnalysisConfiguration

stat

either CV, mean or sd

Examples



bb1 <- prolfqua::sim_lfq_data_peptide_config()
#> creating sampleName from fileName column
#> Warning: no nr_children column specified in the data, adding column nr_children and setting to 1.
#> completing cases
config <- bb1$config
data <- bb1$data
res <- summarize_stats(data, config)
#> [1] "group_"
#> completing cases
res <- summarize_stats(data, config)
#> [1] "group_"
#> completing cases
plot_stat_violin(res, config, stat = "meanAbundance")

plot_stat_violin(res, config, stat = "sd")
#> Warning: Removed 2 rows containing non-finite outside the scale range
#> (`stat_ydensity()`).
#> Warning: Removed 2 rows containing non-finite outside the scale range
#> (`stat_summary()`).

plot_stat_violin(res, config, stat = "CV")
#> Warning: Removed 2 rows containing non-finite outside the scale range
#> (`stat_ydensity()`).
#> Warning: Removed 2 rows containing non-finite outside the scale range
#> (`stat_summary()`).