Learn R Programming

kml (version 0.9.2)

plot,ClusterizLongData: ~ function: plot for ClusterizLongData ~

Description

plot the trajectories of an object ClusterizLongData relativly to a Clusterization.

Usage

## S3 method for class 'ClusterizLongData':
plot(x, y, colorTraj = "color", colorMean = "both", main =
                 "", point = "no", size = 1, ...)
plotTraj(x, y, ...)

Arguments

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
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
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 :

Author(s)

Christophe M. Genolini PSIGIAM: Paris Sud Innovation Group in Adolescent Mental Health INSERM U669 / Maison de Solenn / Paris Contact author:

English translation

Rapha�l Ricaud Laboratoire "Sport & Culture" / "Sports & Culture" Laboratory University of Paris 10 / Nanterre

Details

plot the trajectories of an object ClusterizLongData relativly to a Clusterization.

References

Article submited Web site: http://christophe.genolini.free.fr/kml

See Also

Overview: kml-package Classes : ClusterizLongData, ArtificialLongData Plot : plot: overview, plot(Calinski), plotSubGroups(ClusterizLongData), plotAll(ClusterizLongData)

Examples

Run this code
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)

Run the code above in your browser using DataLab