plot.clusteraverages: plots cluster averages

Description Usage Arguments

View source: R/clusterTools.R

Description

plots average time series of clusters as calculated by clusterAverages, including the variations around the mean as polygons

Usage

1
2
3
4
## S3 method for class 'clusteraverages'
plot(x, cls.srt, cls.col, each = FALSE,
  polygon = TRUE, xlab, time, ylab = "average", ylim = ifelse(each, "avg",
  "rng"), ylim.scale = 0.1, ...)

Arguments

x

cluster time series average object as calculated by clusterAverages

cls.srt

optional sorting of clusters; clusters will be plotted in this order, i.e. the last in cls.srt is plotted last; can be used for selecting a subset of clusters

cls.col

optional coloring of clusters

each

logical value indicating whether to plot all cluster averages on one panel (FALSE) or each cluster on a separate panel (TRUE)

polygon

logical indicating whether to plot the ranges ‘high’ and ‘low’ in the cluster average object avg

xlab

x-axis label

time

optional time-points of the x-axis

ylab

y-axis label

ylim

either conventional range of the y-axis, or a string specifying whether ylim should be calculated from the average (ylim="avg") or from the lower/upper ranges (ylim="rng")

ylim.scale

if ylim=="avg", the calculated ylim will be extended by this fraction of the total range on both sides

...

arguments to plot


raim/segmenTools documentation built on Nov. 9, 2018, 5:38 p.m.