| plotTraj,ClusterLongData | R Documentation |
plotTraj plot the trajectories of an object
ClusterLongData relatively to a Partition.
## S4 method for signature 'ClusterLongData,ANY'
plotTraj(x,y,parTraj=parTRAJ(col="clusters"),
parWin=windowsCut(x['nbVar'],addLegend=TRUE),nbSample=1000,...)
x |
|
y |
|
parTraj |
|
parWin |
|
nbSample |
|
... |
Some other parameters can be passed to the method. |
plotTraj the trajectories of an object ClusterLongData relativly
to the 'best' Partition, or to the
Partition define by y.
Graphical option (col, type, pch
and xlab) can be change using parTraj.
For more
detail on parTraj, see object of
class ParLongData in package longitudinalData .
Overview: kml-package
Classes : ClusterLongData
PlotTraj : plotTraj: overview, plotCriterion
### Move to tempdir
wd <- getwd()
setwd(tempdir()); getwd()
##################
### Construction of the data
ld <- gald()
kml(ld,3:4,1)
### Basic plotTrajting
plotTraj(ld,3)
### Go back to current dir
setwd(wd)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.