Re: [R] lattice: change point color in densityplot()?

From: Deepayan Sarkar <deepayan_at_stat.wisc.edu>
Date: Sat 04 Jun 2005 - 09:23:08 EST

On Friday 03 June 2005 17:49, M. K. wrote:
> 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.

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



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sat Jun 04 09:18:57 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:32:22 EST