Skip to content

Background color(s) for groupedData plot

3 messages · Paul, David A, Uwe Ligges, Michael A. Miller

#
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
#
"Paul, David A" wrote:
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
#
> 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.
[1] "plot.nffGroupedData" "plot.nfnGroupedData" "plot.nmGroupedData" 

Mike