[R] Background color(s) for groupedData plot

Uwe Ligges ligges at statistik.uni-dortmund.de
Thu Jun 19 21:46:25 CEST 2003



"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




More information about the R-help mailing list