classesPlot: Plot to look at the percentage of each class in the data

View source: R/classesPlot.R

classesPlotR Documentation

Plot to look at the percentage of each class in the data

Description

Constructs stacked bar plot to look at the percentage of each class in the data

Usage

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

Author(s)

Allison Thompson

See Also

plot_ly


EMSL-Computing/fticRanalysis documentation built on Dec. 18, 2024, 9:51 p.m.