[R] Plotting groupedData objects
deepayan at cs.wisc.edu
Thu Aug 26 08:32:00 CEST 2004
Quoting David Scott <d.scott at auckland.ac.nz>:
> I am trying to create a plot similar to Figure 3.2 in Bates and Pinheiro.
> I have repeated measurements on about 80 subjects from 2 treatment groups.
> I would like to have the panels for the two treatment groups in separate
> groups and within those groups have the panels ordered on maximum value
> (as is the default).
> I am ok with getting plots similar to Figs 3.1 and 3.2, but can't see how
> to change the ordering of the panels to what I want.
> Here is the definition of my groupedData object
> RAWlmeData <- groupedData(RAW~Elapsed|ID,
> labels=list(x="Elapsed time",y="Airways resistance"),
> units=list(x="(hours)",y="cm H20/L/sec"))
> I guess I could just plot the two treatment groups separately in turn but
> I feel there is something I am missing.
My reading of page 105 suggests that you need to specify
'outer=<whatever your grouping factor is>'.
Have you tried that?
More information about the R-help