~ Function: plot for ClusterLongData ~
plot the trajectories of an object ClusterLongData relativly
to a Partition.
## S4 method for signature 'ClusterLongData,ANY' plot(x,y=NA,parTraj=parTRAJ(),parMean=parMEAN(), addLegend=TRUE, adjustLegend=-0.12,toPlot="both",criterion=x["criterionActif"], nbCriterion=1000, ...)
x |
|
y |
|
parTraj |
|
parMean |
|
toPlot |
|
criterion |
|
nbCriterion |
|
addLegend |
|
adjustLegend |
|
... |
Some other parameters can be passed to the method (like "xlab" or "ylab". |
plot the trajectories of an object ClusterLongData relativly
to the 'best' Partition, or to the
Partition define by y.
Graphical option concerning the individual trajectory (col, type, pch
and xlab) can be change using parTraj.
Graphical option concerning the cluster mean trajectory (col, type, pch,
pchPeriod and cex) can be change using parMean. For more
detail on parTraj and parMean, see object of
class ParLongData.
Overview: kml-package
Classes : ClusterLongData
Plot : plot: overview, plotCriterion
################## ### Construction of the data ld <- gald() ### Basic plotting plot(ld) ################## ### Changing graphical parameters 'par' kml(ld,3:4,1) ### No letters on the mean trajectories plot(ld,3,parMean=parMEAN(type="l")) ### Only one letter on the mean trajectories plot(ld,4,parMean=parMEAN(pchPeriod=Inf)) ### Color individual according to its clusters (col="clusters") plot(ld,3,parTraj=parTRAJ(col="clusters")) ### Mean without individual plot(ld,4,parTraj=parTRAJ(type="n")) ### No mean trajectories (type="n") ### Color individual according to its clusters (col="clusters") plot(ld,3,parTraj=parTRAJ(col="clusters"),parMean=parMEAN(type="n")) ### Only few trajectories plot(ld,4,nbSample=10,parTraj=parTRAJ(col='clusters'),parMean=parMEAN(type="n"))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.