Description Usage Arguments Details Examples
plot
plot both the trajectories the the clusters' means of an object
Clds
.
1 2 |
x |
[ |
y |
Useless. For compatibility only. |
col |
[ |
lty |
[ |
legend |
[ |
... |
Arguments to be passed to methods. These arguments need to
be compatible with |
plot
plot both the trajectories the the clusters' means of an object
Clds
.
If the option col="clusters"
is used, the trajectories will be colored
according to their clusters.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | ### Generating artificial data
nbLignes <- 12
trajH <- matrix(0,nbLignes,10)
for(i in 1:(nbLignes/3)){
trajH[i,] <- pnorm(1:10,runif(1,3,8),1)*rnorm(1,10,1)
}
for(i in (nbLignes/3+1):(2*nbLignes/3)){
trajH[i,] <- dnorm(1:10,runif(1,3,8),1)*rnorm(1,13,1)
}
for(i in (2*nbLignes/3+1):nbLignes){
trajH[i,] <- pnorm(1:10,runif(1,3,8),1)*rnorm(1,5,0.1)
}
myClds <- cldsWide(data.frame(1:60,trajH))
par(mfrow=c(1,2))
plotTraj(myClds)
kmlShape(myClds,toPlot="none")
plotTraj(myClds)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.