clusterAverages | R Documentation |
calculates average values and distributions for each cluster and time point of a time series
clusterAverages(ts, cls, cls.srt, avg = "median", q = 0.9, rm.inf = TRUE)
ts |
a matrix of time series, with time points in columns |
cls |
a clustering of the time series, |
cls.srt |
optional sorting of the clusters |
avg |
a function (or the name of a function as a string) for
calculating an ‘average’ value for each cluster; default is the
|
q |
either numeric (0.5-1, or 0), or a string. If numeric it
indicates the fraction of data shown as transparent ranges,
e.g. |
rm.inf |
remove infinite values (e.g. from log transformations) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.