[R] How do I add fitted curves to coplots?

Prof Brian D Ripley ripley at stats.ox.ac.uk
Wed May 17 10:27:58 CEST 2000


On Wed, 17 May 2000, John Maindonald wrote:

> Brian Ripley wrote
> 
> ....
> > coplot does not have the subscripts = T argument that Trellis has.
> > I think we could usefully add it (since `lattice' seems nowhere visible
> > yet), and I will do so for 1.1.0. 
> 
> That would be very useful.

It's now in, and was easy to do.

> > Also, the handling of xlab/ylab differs
> > a bit from the S original, and I will take a look.
> 
> In coplot() as it stands, xlab and ylab control the labels for the
> "given" (or conditioning) values, which seems to me odd terminology.
> It is not possible to directly control the x and y labels.  Provide
> it does not break too much existing code, I'd plump for given.xlab
> etc. for labelling the given values, using xlab and ylab of the
> x and y-axis labels for the individual panels.

What I chose to do was to make the first component of xlab and ylab the x
and y-axis labels for the array of panels (which is what they are in S, and
in xyplot), and an optional second component the labels for the
conditioning values.

Anything like this would break some existing code, but the
current version breaks my S code!  Re-using x/ylab might give
sensible answers on old R code, I thought.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list