Description Usage Arguments Details Value Examples
Plot some longitudinal data in long format.
1 2 | matplotLong(trajLong, col = 1:6, lty = 1:5, lwd=1, add = FALSE,
main="", xlab="Times",ylab="",pourcent=NA)
|
trajLong |
[ |
col |
[ |
lty |
[ |
lwd |
[ |
add |
[ |
main |
[ |
xlab |
[ |
ylab |
[ |
pourcent |
[ |
Plot some longitudinal data in long format. Only the color and the lines width can be modifid by the user.
A graph.
1 2 3 4 5 6 7 8 9 10 11 | ### Preparing data
g <- function(x)dnorm(x,3)+dnorm(x,7)+x/10
dn <- data.frame(id=rep(1:20,each=101),
times=rep((0:100)/10,times=20),
traj=rep(g((0:100)/10),20)+rep(runif(20),each=101)+rnorm(20*101,,0.1))
### matplotLong
matplotLong(dn)
### matplotLong with a legend
matplotLong(dn,col=2:3,pourcent=c(0.50,0.50))
|
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.