[R] Using panel.densityplot with stripplot

From: Christopher Oezbek <oezbek_at_inf.fu-berlin.de>
Date: Thu, 06 Dec 2007 09:04:09 +0100


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, ...)
           })

This works as far as the stripplot part is concerned. But

a.) panel.densityplot does not take a y argument.

b.) even if I drop y, no density curve shows up (I guess I am missing correct dargs here)

I have been toying with

Many thanks for any advice/ideas!

   Christopher

-- 
Christopher Oezbek
Arbeitsgruppe Software Engineering
Institut für Informatik
Freie Universität Berlin
Takustr. 9, 14195 Berlin, Germany
+49 30 838 75242, Raum 008
http://www.inf.fu-berlin.de/~oezbek/

______________________________________________
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:08:57 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 - 09: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.