Re: [R] Types in grouped multi-panel (lattice) xyplot

From: Deepayan Sarkar <deepayan.sarkar_at_gmail.com>
Date: Fri, 11 Apr 2008 10:00:00 -0700

On 4/11/08, Dieter Menne <dieter.menne_at_menne-biomed.de> wrote:
> Deepayan Sarkar <deepayan.sarkar <at> gmail.com> writes:
>
> > > Try
> > > xyplot(val ~ loc | mouse, data = df,
> > > groups=valtype,
> > > type=c("p","l"),
> > distribute.type = TRUE,
>
> > > col=c("black", "blue"))
>
> For all who like me had difficulties finding distribute.type in the docs: it is
> documented in panel.superpose, which means you must know that panel.superpose is
> active when there is a groups= argument.
>
> Deepayan, would it be possible to have some cross-references in xyplot, such as:
>
> distribute.type see panel.superpose

Do you mean in the See Also section? I'm happy to consider a patch, but note that the entry for panel already has:

          'panel.xyplot' has an argument called 'type' which is worth
          mentioning here because it is quite frequently used (and as
          mentioned above, can be passed to 'xyplot' directly).  In the
          event that a 'groups' variable is used, 'panel.xyplot' calls
          'panel.superpose', arguments of which can also be passed
          directly to 'xyplot'.

I think the help page is simply too big to be useful as something more than a reference. My UseR!2007 talk did describe this and other useful tricks, and that talk is available from the conference website.

-Deepayan



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Fri 11 Apr 2008 - 17:09:49 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 11 Apr 2008 - 18:30:27 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive