Greetings. How can I insert gridlines in the following density plot call? Must one compose a panel function?
'data.frame': 46 obs. of 2 variables: $ fallrates: num 5.2 7.1 7.1 9.8 3.7 7.5 5 6.2 1.5 2.9 ... $ prepost : Factor w/ 2 levels "post","pre": 2 2 2 2 2 2 2 2 2 2 ... library(lattice) densityplot(~fallrates, groups = prepost, kernal="triangular", lwd=2, plot.points = TRUE, ref = TRUE, auto.key = list(columns = 2), main="Estimated fall rate density, pre and post intevention") Thank you for your consideration and comments. Giles Crane ______________________________________________ R-help@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.