plotMeanTraj | R Documentation |
Plot cluster-specific mean trajectory for one or all clusters provided by a traj
object.
plotMeanTraj(x, clust.num = NULL, ...)
x |
|
clust.num |
Integer indicating the cluster number to plot. |
... |
Arguments to be passed to plot. |
The function plots cluster specific mean trajectory calculated at each time point. By setting the clust.num
argument to an integer corresponding to a cluster number, one can plot the mean trajectory of that cluster only. Any other plotting arguments can be added to the function.
Marie-Pierre Sylvestre, Dan Vatnik
marie-pierre.sylvestre@umontreal.ca
## Not run:
# Setup data
data = example.data$data
# Run step1measures, step2factors and step3clusters with a predetermined number of clusters
s1 = step1measures(data, ID=TRUE)
s2 = step2factors(s1)
s3.4clusters = step3clusters(s2, nclust = 4)
# Plot mean trajectories
plotMeanTraj(s3.4clusters)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.