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
)

Arguments

ftmsObj

ftmsData object of class peakData or compoundData

xaxis

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")).

ylabel

y axis label, default is "Density"

title

plot title, default is NULL

vkBoundarySet

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.

classColName

column name of ftmsData$e_meta to use for classes (if classes have been precomputed)

Value

a plotly object

See also

plot_ly

Author

Allison Thompson