Skip to contents

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 or Analysis

cls

sample information column to use for class labels

...

arguments to pass to the appropriate method

type

raw or preTreated data to plot

Examples

library(metaboData)

d <- analysisData(abr1$neg,abr1$fact)

## Plot class occupancy distributions
plotOccupancy(d,cls = 'day')