[R] hdr.den plot colors help

Andras Farkas motyocska at yahoo.com
Fri Jun 21 17:07:39 CEST 2013

Dear All,

I have the following code:

a <-rnorm(5000,10,2)
hdr.den(a,prob = c(25, 50, 75,95))

is there a way to change the colors of the horizontal bars representing the given highest density regions from the current white, green, red and black to colors of the shades of grey going from lighter to darker?

appreciate the help,



More information about the R-help mailing list