plot,ClusterizLongData {kml} | R Documentation |
plot
the trajectories of an object ClusterizLongData
relativly
to a Clusterization
.
## S4 method for signature 'ClusterizLongData': plot(x, y, colorTraj = "color", colorMean = "both", main = "", point = "no", size = 1, ...) plotTraj(x, y, ...)
x |
[ClusterizLongData]: Object containing the trajectories to plot. |
y |
[numeric] or [vector(numeric)]: Give the Clusterization
to represent. If y is missing, the Clusterization with
the highest Calinski creterion is selected. If y is a number,
the first Clusterization of the sublist c-y is
selected. If y is a couple of numeric, the y[2] th
Clusterization of the sublist c-y[1] is selected. |
colorTraj |
[character]: Precise the color of the
trajectories. 'black' draw all the trajectories in
black. 'color' draw each subgroups with a specific color. 'no' does
not plot the trajectories. |
colorMean |
[character]: Precise the color of the
mean trajectories of each subgroups. 'black' draw all the
mean trajectories in black. 'color' draw each mean trajectories with
a specific color. 'both' draw each mean trajectories with
a specific color and add a small border in black. 'no' does
not plot the mean trajectories. |
main |
[charater]: give the title of the graph. |
point |
[character]: Precise the kind of the point to plot on the mean trajectories. 'point' add a black dot ; 'symbols' add a symbol ; 'letters' add letters ; 'no' do not add points. |
size |
[numeric]: If some point are added on the mean trajectories, size fixe the
size of the point. |
... |
Graphical
parameters to be passed to methods (see plot ). For
ClusterizLongData object specificly :
|
plot
the trajectories of an object ClusterizLongData
relativly
to a Clusterization
.
Christophe M. Genolini
PSIGIAM: Paris Sud Innovation Group in Adolescent Mental Health
INSERM U669 / Maison de Solenn / Paris
Contact author: <genolini@u-paris10.fr>
Raphaël Ricaud
Laboratoire "Sport & Culture" / "Sports & Culture" Laboratory
University of Paris 10 / Nanterre
Article submited
Web site: http://christophe.genolini.free.fr/kml
Overview: kml-package
Classes : ClusterizLongData
, ArtificialLongData
Plot : plot: overview
, plot(Calinski)
,
plotSubGroups(ClusterizLongData)
, plotAll(ClusterizLongData)
ld <- gald() kml(ld,,5) par(ask=TRUE) ### Default ploting plot(ld) ### Only the trajectories in black plot(ld,colorMean="no",colorTraj="black") ### Only the mean trajectories, with letters (for publication ?) plot(ld,colorTraj="no",colorMean="black",point="letters",size=2) ### All at once. plot(ld,colorMean="both",point="letters",size=2) par(ask=FALSE)