plotClassTimeSeries: Plot abundances by class

Description Usage Arguments Value See Also Examples

View source: R/fitTimeSeries.R

Description

Plot the abundance of values for each class using a spline approach on the estimated full model.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
plotClassTimeSeries(
  res,
  formula,
  xlab = "Time",
  ylab = "Abundance",
  color0 = "black",
  color1 = "red",
  include = c("1", "class", "time:class"),
  ...
)

Arguments

res

Output of fitTimeSeries function

formula

Formula for ssanova. Of the form: abundance ~ ... where ... includes any pData slot value.

xlab

X-label.

ylab

Y-label.

color0

Color of samples from first group.

color1

Color of samples from second group.

include

Parameters to include in prediction.

...

Extra plotting arguments.

Value

Plot for abundances of each class using a spline approach on estimated null model.

See Also

fitTimeSeries

Examples

1
2
3
4
data(mouseData)
res = fitTimeSeries(obj=mouseData,feature="Actinobacteria",
   class="status",id="mouseID",time="relativeTime",lvl='class',B=10)
plotClassTimeSeries(res,pch=21,bg=res$data$class,ylim=c(0,8))

metagenomeSeq documentation built on Nov. 8, 2020, 5:34 p.m.