plotSubGroups {kml}R Documentation

~ Function: plotSubGroups for ClusterizLongData ~

Description

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

Usage

plotSubGroups(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 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.
... Graphical parameters to be passed to methods (see plot). More precisely:
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.

Author(s)

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

Contact author : <genolini@u-paris10.fr>

English translation

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

References

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

See Also

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

Examples

ld <- gald()
kml(ld,,5)
par(ask=TRUE)

### Default ploting
plotSubGroups(ld)

### Only the trajectories in black
plotSubGroups(ld,colorMean="no",colorTraj="black")

### Only the mean trajectories, with letters (for publication ?)
plotSubGroups(ld,colorTraj="no",colorMean="black",point="letters",size=2)

### All at once.
plotSubGroups(ld,colorMean="both",point="letters",size=2)

par(ask=FALSE)

[Package kml version 0.9.2 Index]