Thank you both for pointing out that this is a lattice plot (ie, R's version of Trellis graphics) and therefore needs something other than par(). I was able to use IE6.0 to search for "trellis" and find the relevant commands (after using help.start(), of course). This brings up another question: Is there a convenient way to decide whether or not the generic plot( ) is going to use "regular" or "trellis" plotting? I looked at methods(plot) and didn't find any groupedData plot methods listed, so perhaps this is the clue? -david paul
Background color(s) for groupedData plot
3 messages · Paul, David A, Uwe Ligges, Michael A. Miller
"Paul, David A" wrote:
Thank you both for pointing out that this is a lattice plot (ie, R's version of Trellis graphics) and therefore needs something other than par(). I was able to use IE6.0 to search for "trellis" and find the relevant commands (after using help.start(), of course). This brings up another question: Is there a convenient way to decide whether or not the generic plot( ) is going to use "regular" or "trellis" plotting? I looked at methods(plot) and didn't find any groupedData plot methods listed, so perhaps this is the clue? -david paul
______________________________________________ R-help at stat.math.ethz.ch mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
When my first guess is right (you are using nlme),
you might want to take a look into the help pages for those plots, e.g.:
?plot.nfnGroupedData
tells you it is using lattice, and you can look into these functions to
find it out:
getS3method("plot", "nfnGroupedData")
Uwe Ligges
"Paul," == Paul, David A <paulda at battelle.org> writes:
> Is there a convenient way to decide whether or not the
> generic plot( ) is going to use "regular" or "trellis"
> plotting? I looked at methods(plot) and didn't find any
> groupedData plot methods listed, so perhaps this is the
> clue?
It's there, but as the GroupedData methods, not groupedData.
require(nlme)
methods(plot)[grep('groupedData',methods(plot),ignore.case=T)]
[1] "plot.nffGroupedData" "plot.nfnGroupedData" "plot.nmGroupedData" Mike