[R] Using panel.densityplot with stripplot
Deepayan Sarkar
deepayan.sarkar at gmail.com
Thu Dec 6 09:20:20 CET 2007
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
More information about the R-help
mailing list