Skip to content

lattice: change point color in densityplot()?

3 messages · M. K., Deepayan Sarkar

#
When using the "densityplot" function from "lattice" library, is there
a way to pick a different color *for the points only*?  (I'm using
densityplot(..., plot.points=TRUE, ...))  Using "col" parameter changes
the color for both, the points and the curve.
#
On Friday 03 June 2005 17:49, M. K. wrote:
Indirectly. ?panel.densityplot says that there's a parameter for line color, 
so you could do 

densityplot(rnorm(100), col = 'red', col.line = 'cyan')

Deepayan
#
--- Deepayan Sarkar <deepayan at stat.wisc.edu> wrote:
Ah, great, thanks.