Re: [R] Using panel.densityplot with stripplot

From: Deepayan Sarkar <deepayan.sarkar_at_gmail.com>
Date: Thu, 6 Dec 2007 00:20:20 -0800

On 12/6/07, Christopher Oezbek <oezbek_at_inf.fu-berlin.de> wrote:
> Hi Lattice-Experts/Hi Deepayan,
> I have been searching the archives for an answer to this, but am finally
> giving up:
>
> I am plotting stripplots above each other using
>
> stripplot(type ~ date, data = email)
>
> which looks exactely as I want (type is a factor with 8 levels). I
> addition I would now like to display for each stripplot a density curve.
>
> From examples I would have thought I would need to do:
>
> stripplot(type ~ date2, data = email,

> panel = function(x, y, ...) {
> panel.stripplot(x, y, ...)
> panel.densityplot(x, y, ...)
> })

What examples? panel.stripplot and panel.densityplot have entirely different expectations about what the y-range of the panel is going to be, and they cannot be mixed.

Sounds like you want something like panel.violin (?panel.violin has an example).

-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 Thu 06 Dec 2007 - 08:22:48 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 Thu 06 Dec 2007 - 10:30:17 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.