Re: [R] Using panel.densityplot with stripplot

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

On 12/6/07, Christopher Oezbek <> 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 mailing list PLEASE do read the posting guide 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 Please read the posting guide before posting to the list.