plot density distribution or ecdf of sd, mean or CV

plot_stat_density(
  pdata,
  config,
  stat = c("CV", "meanAbundance", "sd"),
  ggstat = c("density", "ecdf")
)

Arguments

pdata

data.frame

config

AnalysisConfiguration

stat

sd, mean or CV

ggstat

either density of ecdf

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
plot_stat_density(res, config, stat = "meanAbundance")

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

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