Plot Barplots

plot_barplot(mzroll_list, groupIds, grouping_vars, value_var, fill_var = NULL)

Arguments

mzroll_list

output of process_mzroll or process_mzroll_multi

  • features: one row per unique analyte (defined by a unique groupId),

  • samples: one row per unique sample (defined by a unique sampleId),

  • measurements: one row per peak (samples x peakgroups)

groupIds

groupIds for compounds to plot

grouping_vars

variables to use for ordering samples and calculating standard errors

value_var

measurement variable

fill_var

variable to use for filling bars

Examples

plot_barplot( mzroll_list = nplug_mzroll_normalized, groupIds = 1:4, grouping_vars = c("limitation", "DR"), value_var = "normalized_log2_abundance", fill_var = "limitation" )