| ParLongData-class {longitudinalData} | R Documentation |
~ Class: ParLongData ~
Description
ParLongData is an objet containing some graphical
parameter used to plot LongData object and / or mean trajectories. They work as
define in par.
Slots
type[character]: Type of the plot that should be drawn ('p' for point, 'l' for line, 'b' for both, 'c' line appart, 'o' for overplot, 'h' for histogram, 's' and 'S' for steps, 'n' for no ploting)col[character]: A specification for the default plotting color. Can be either a single value or a vector.pch[numeric]or[character]: Either an integer specifying a symbol or a single character to be used as the default in plotting points. See example in points for possible values and their interpretation.pchPeriod[numeric]: Fix the number of point that should be plot. Usefull to plot points on trajectories with a lot of mesurement (see examples inplotTrajMeansforLongDatafor details).cex[numeric]: A numerical value giving the amount by which plotting text and symbols should be magnified relative to the default.xlab[character]: A title for the x axis.ylab[character]: A title for the y axis.
Construction
Object ParLongData can be created by three functions:
-
parLongDatacreate an object from scratch ; -
parTrajcreate an object containing default value to plot individutal trajectories; -
parMeancreate an object containing default value to plot mean trajectories.
Methods
object['xxx']Get the value of the field
xxx.object['xxx']<-valueSet the field
xxxtovalue.
Author(s)
Christophe Genolini
PSIGIAM: Paris Sud Innovation Group in Adolescent Mental Health
INSERM U669 / Maison de Solenn / Paris
Contact author : <genolini@u-paris10.fr>
English translation
Raphaƫl Ricaud
Laboratoire "Sport & Culture" / "Sports & Culture" Laboratory
University of Paris 10 / Nanterre
Examples
### Building ParLongData
parMyData <- parLongData(type="n",col=3,pch="1",pchPeriod=20,cex=1,xlab="Time",ylab="Size")
### Get
parMyData['col']
### Set
parMyData['cex'] <- 3
(parMyData)