[R] densityplot and panel.groups

From: Ken Beath <kbeath_at_efs.mq.edu.au>
Date: Fri 07 Jul 2006 - 10:15:20 EST

I am trying to plot multiple densityplots on each panel, and using panel.groups to do some additional plotting (not included in the example) as in this example.


thedata <- data.frame(x=rnorm(1200),class=rep(1:3,each=200,times=2),


densityplot(~x | class,groups=group,

	panel.groups = function(x,subscripts,groups,panel.number,...) {
# other stuff here

But get an "Error in panel.superpose(x, darg = darg, plot.points = plot.points, ref = FALSE, : formal argument "panel.groups" matched by multiple actual arguments" using R 2.3.1 (MacOS X 10.4.7), I think this worked with a previous version of R.

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Fri Jul 07 11:34:39 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Fri 07 Jul 2006 - 18:17:25 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.