Re: [R] Lattice: Superpose bwplot on dotplot [Newbie Question]

From: Charilaos Skiadas <cskiadas_at_gmail.com>
Date: Mon, 16 Jun 2008 22:01:59 -0400

On Jun 16, 2008, at 12:13 PM, Lord Yo wrote:

>
> Hello everyone
>
> I have dataset containing a monetary value (ABS) and two factors (Fct,
> Group). I am able to create useful using:
>
> bwplot(ABS~Group|Fct)
> and
> dotplot(ABS~Group|Fct)
>
> Question: What do I have to do to overlay the dotplot with the
> bwplot (same
> data set)?
>
> I've found a couple of posts that hinted at the possibility of
> doing that,
> and checked the panel.superpose() help, but the info was too
> complex for my
> newbie brain.

Try this:

bwplot(ABS~Group|Fct, panel=function(...) {panel.bwplot(...); panel.dotplot(...)} )

There are probably others, perhaps better, ways.

> Thanks for your help!
> LY

Haris Skiadas
Department of Mathematics and Computer Science Hanover College



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 Tue 17 Jun 2008 - 02:07:03 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 Tue 17 Jun 2008 - 03:30:44 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