plotTraj: ~ Function: plotTraj for Clds ~

Description Usage Arguments Details Examples

Description

plotTraj plot the trajectories of an object Clds.

Usage

1
2
## S4 method for signature 'Clds,missing'
plotTraj(x, y, col="clusters", pourcent=NA, ...)

Arguments

x

[Clds]: Object containing the trajectories to plot.

y

Useless. For compatibility only.

col

[character], [integer] or [vector(integer)]: color use for the trajectories. If the special value "clusters" is used, the trajectories will be colored according to their clusters.

pourcent

[vector(numeric)]: if pourcent is not NA, then the vector pourcent is used as value for the legend. If pourcent is NA, the legend is not printed.

...

Arguments to be passed to methods. These arguments need to be compatible with matplot.

Details

plotTraj the trajectories of an object Clds. If the option col="clusters" is used, the trajectories will be colored according to their clusters.

Examples

1
2
3
data(ictusShort)
myClds <- cldsWide(ictusShort)
plot(myClds)

Example output

Loading required package: class
Loading required package: longitudinalData
Loading required package: clv
Loading required package: cluster
Loading required package: rgl
Loading required package: misc3d
Loading required package: kml
Loading required package: lattice

Attaching package: 'kmlShape'

The following object is masked from 'package:longitudinalData':

    distFrechet

Warning messages:
1: In rgl.init(initValue, onlyNULL) : RGL: unable to open X11 display
2: 'rgl_init' failed, running with rgl.useNULL = TRUE 
3: .onUnload failed in unloadNamespace() for 'rgl', details:
  call: fun(...)
  error: object 'rgl_quit' not found 

kmlShape documentation built on May 1, 2019, 7:50 p.m.