Constructs stacked bar plot to look at the percentage of each class in the data
classesPlot(
ftmsObj,
xaxis = NULL,
ylabel = "Percentage of Chemical Classes",
title = NULL,
vkBoundarySet = "bs1",
classColName = NULL
)
ftmsData object of class peakData or compoundData
x axis variable. If NULL, will use attr(ftmsObj, "cnames")$fdata_cname. Must be one of colnames(ftmsObj$f_data) or colnames(attr(ftmsObj, "group_DF")).
y axis label, default is "Density"
plot title, default is NULL
character vector specifying which boundary set to use when determining class. Valid options are currently "bs1" and "bs2" and defaults to "bs1". See details of assign_class
for differences in sets.
column name of ftmsData$e_meta
to use for classes (if classes have been precomputed)
a plotly object
plot_ly