Description Usage Arguments Details Value Author References Examples
parWindows
is the constructor of object ParWindows
.
1 | parWindows(nbRow, nbCol, addLegend,closeScreen)
|
nbRow |
|
nbCol |
|
addLegend |
|
closeScreen |
|
parWindows
is the constructor of object ParWindows
.
Given a number of rows and colonnes, it computes the screenMatrix
that
is use by split.screen for plot object
LongData
. If addLegend
is true, an
extra space is added on the top of the graphes to print the legend.
An object of class ParWindows
.
Christophe Genolini
1. UMR U1027, INSERM, Universit<e9> Paul Sabatier / Toulouse III / France
2. CeRSME, EA 2931, UFR STAPS, Universit<e9> de Paris Ouest-Nanterre-La D<e9>fense / Nanterre / France
[1] C. Genolini and B. Falissard
"KmL: k-means for longitudinal data"
Computational Statistics, vol 25(2), pp 317-328, 2010
[2] C. Genolini and B. Falissard
"KmL: A package to cluster longitudinal data"
Computer Methods and Programs in Biomedicine, 104, pp e112-121, 2011
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | ### Building ParWindows
(paramWin <- parWindows(3,2,FALSE,TRUE))
### Get
figsScreen <- paramWin['screenMatrix']
### Usage
listScreen <- split.screen(figsScreen)
screen(listScreen[1])
plot(-5:5/10,2.5-(-5:5)^2/20,ylim=c(0,6),axes=FALSE,xlab="",ylab="",type="l",lwd=3)
lines(-5:5/10,(-5:5)^2/20,ylim=c(0,6),type="l",lwd=3)
screen(listScreen[3])
plot(-5:5/10,2.5-(-5:5)^2/20,ylim=c(0,6),axes=FALSE,xlab="",ylab="",type="l",lwd=3)
lines(-5:5/10,(-5:5)^2/20,ylim=c(0,6),type="l",lwd=3)
screen(listScreen[5])
plot(-5:5/10,(-5:5)^2/10,ylim=c(0,6),axes=FALSE,xlab="",ylab="",type="l",lwd=3)
lines(-5:5/10,(-5:5)^2/20+1.25,ylim=c(0,6),type="l",lwd=3)
close.screen(all.screens=TRUE)
### :-)
|
Loading required package: clv
Loading required package: cluster
Loading required package: class
Loading required package: rgl
Loading required package: misc3d
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
~~~ Class: ParWindows ~~~
~ nbRow : 3
~ nbCol : 2
~ addLegend : FALSE
~ closeScreen : TRUE
~ screenMatrix
[,1] [,2] [,3] [,4]
[1,] 0.0 0.5 0.6666667 1.0000000
[2,] 0.5 1.0 0.6666667 1.0000000
[3,] 0.0 0.5 0.3333333 0.6666667
[4,] 0.5 1.0 0.3333333 0.6666667
[5,] 0.0 0.5 0.0000000 0.3333333
[6,] 0.5 1.0 0.0000000 0.3333333
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.