Learn R Programming

longitudinalData (version 2.4.7)

ParLongData-class: ~ 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.

Arguments

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 in plotTrajMeans for LongData for 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:

  1. parLongData create an object from scratch ;

  2. parTraj create an object containing default value to plot individutal trajectories;

  3. parMean create an object containing default value to plot mean trajectories.

Methods

object['xxx']

Get the value of the field xxx.

object['xxx']<-value

Set the field xxx to value.

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

Run this code
   ### 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)

Run the code above in your browser using DataLab