plotCombTraj | R Documentation |
traj
objectPlot cluster-specific mean or median trajectories.
plotCombTraj(x, stat.type = "mean", colored = FALSE, ...)
x |
|
stat.type |
Choice between "mean" or "median". The mean or the median calculated at each time point for a cluster-specific set of trajectories will be plotted. Defaults to "mean." |
colored |
Boolean in dictating if the plot should use colors. If not, the trajectory lines will be distinctively patterned.
Defaults to |
... |
Any extra parameter used by the |
The function plots the mean or the median cluster-specific trajectory, calculated at each time point. A legend is generated in the top left corner of the plot. Other plotting parameter(s) can be added to the function with the use of ....
Marie-Pierre Sylvestre, Dan Vatnik
marie-pierre.sylvestre@umontreal.ca
mean
median
## 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 combination trajectories
plotCombTraj(s3.4clusters)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.