##################
### Real example on array
time=c(1,2,3,4,8,12,16,20)
id3=1:12000
f <- function(id,t)((id-1)%%3-1) * t
g <- function(id,t)(id%%2+1)*t
ld3 <- as.longData(array(cbind(outer(id3,time,f),outer(id3,time,g))+rnorm(12000*8*2,0,3),dim=c(12000,8,2)))
par(ask=TRUE)
### Basic plot
plot(ld3)
### Change the windows orientation
plot(ld3,paramWindows=windowsCut(c(2,1)))
### Change some parameters
plot(ld3,paramTraj=parTraj(col="red"))
### Plot only 1000 trajectories
plot(ld3,nbSample=1000)
### Plot all the trajectories
plot(ld3,nbSample=Inf)
par(ask=FALSE)
Run the code above in your browser using DataLab