Re: [R] Lattice: type=p stopped working in panel.average

2010-10-19 Thread Deepayan Sarkar
On Tue, Oct 19, 2010 at 4:18 PM, Alexandr Malusek alexandr.malu...@gmail.com wrote: Hi, The behavior of panel.average has changed.  In March 2010, I plotted the attached r_plotViolinOfAnnualE_old.eps. (I don't know the version of R). Today, I plotted the attached r_plotViolinOfAnnualE_new.eps

Re: [R] Lattice: type=p stopped working in panel.average

2010-10-19 Thread Alexandr Malusek
Dear Deepayan, I had to swap x and y (see below), but otherwise it worked perfectly. Thank you for your help. mypanel.average - function(x, y, FUN = mean, ...) { aa - aggregate(x ~ as.numeric(y), data = environment(), FUN = FUN) panel.points(aa[[2]], aa[[1]], ...) } plot - bwplot(year ~