Skip to content

Instantly share code, notes, and snippets.

@informationsea
Created July 28, 2012 07:16
Show Gist options
  • Save informationsea/3192226 to your computer and use it in GitHub Desktop.
Save informationsea/3192226 to your computer and use it in GitHub Desktop.
Density plot with grid
library(lattice)
gridensityplot <- function(...) {
densityplot(..., panel=function(...) {
panel.grid(h=-1, v=-1)
panel.densityplot(...)
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment