Re: [R] How to insert gridlines in lattice density plot

2010-04-23 Thread Deepayan Sarkar
On Thu, Apr 22, 2010 at 3:16 PM, Giles wrote: > Thank you Burt Gunter and David Winsemius, > > I confirmed David's comment. > One must use type=c("p","g") > in order to get both the grid and points. > > So, to use densityplot well, > we must be quite aware of the options > for panel.xyplot! Actua

Re: [R] How to insert gridlines in lattice density plot

2010-04-22 Thread David Winsemius
On Apr 22, 2010, at 4:52 PM, Bert Gunter wrote: " Must one compose a panel function?" Depending on what you want exactly, no. Add the argument type="g" to your call. (e.g. densityplot(~fallrates, groups = prepost,type="g",... ) See ?panel.xyplot and recall that lattice passes down argum

Re: [R] How to insert gridlines in lattice density plot

2010-04-22 Thread Bert Gunter
" Must one compose a panel function?" Depending on what you want exactly, no. Add the argument type="g" to your call. (e.g. densityplot(~fallrates, groups = prepost,type="g",... ) See ?panel.xyplot and recall that lattice passes down arguments that it does not know what to do with to the p