Description Usage Arguments Details Value Author(s) English translation Examples
parLongData
, parTraj
and parMean
are constructors for the class
ParLongData
.
1 2 3 4 5 |
type |
|
col |
|
pch |
|
pchPeriod |
|
cex |
|
xlab |
|
ylab |
|
parLongData
is the basic constructor of the class
ParLongData
.
parTRAJ
create an object with default values for ploting
individual trajectories ;
parMEAN
create an object with default values for ploting mean trajectories.
If col='clusters', pch='letters' or pch='symbol', the object can not be use directly, it should first be prepared using the function expandParLongData.
An object of class ParLongData
Christophe Genolini
PSIGIAM: Paris Sud Innovation Group in Adolescent Mental Health
INSERM U669 / Maison de Solenn / Paris
Contact author : <genolini@u-paris10.fr>
Rapha<eb>l Ricaud
Laboratoire "Sport & Culture" / "Sports & Culture" Laboratory
University of Paris 10 / Nanterre
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ##################
### Construction of LongData
time=c(1,2,3,4,8,12,16,20)
id2=1:120
f <- function(id,t)((id-1)%%3-1) * t
g <- function(id,t)(id%%2+1)*t
ld2 <- longData3d(
array(cbind(outer(id2,time,f),outer(id2,time,g))+rnorm(120*8*2,0,3),
dim=c(120,8,2)))
### Example with default value
plotTrajMeans3d(ld2)
plotTrajMeans3d(ld2,parTraj=parTRAJ())
### Example with default value except for the color
plotTrajMeans3d(ld2,parTraj=parTRAJ(col="blue"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.