Plot class occupancy distributions.
Usage
plotOccupancy(x, cls = "class", ...)
# S4 method for AnalysisData
plotOccupancy(x, cls = "class")
# S4 method for Analysis
plotOccupancy(x, cls = "class", type = "raw")
Arguments
- x
S4 object of class
AnalysisData
orAnalysis
- cls
sample information column to use for class labels
- ...
arguments to pass to the appropriate method
- type
raw
orpreTreated
data to plot
Examples
library(metaboData)
d <- analysisData(abr1$neg,abr1$fact)
## Plot class occupancy distributions
plotOccupancy(d,cls = 'day')