[R] hdr.den plot colors help

Andras Farkas motyocska at yahoo.com
Fri Jun 21 17:56:22 CEST 2013


Rui,

package is hdrcde, and thanks for the input,

Andras

--- On Fri, 6/21/13, Rui Barradas <ruipbarradas at sapo.pt> wrote:

> From: Rui Barradas <ruipbarradas at sapo.pt>
> Subject: Re: [R] hdr.den plot colors help
> To: "Andras Farkas" <motyocska at yahoo.com>
> Cc: r-help at r-project.org
> Date: Friday, June 21, 2013, 11:51 AM
> Hello,
> 
> It's not your first post, you should know to say from which
> package is 
> the function you're using.
> 
> As for the question the answer is no, those values are hard
> coded in the 
> source. What you can do is to download the source and change
> file hdr.den.R
> 
> Hope this helps,
> 
> Rui Barradas
> 
> Em 21-06-2013 16:07, Andras Farkas escreveu:
> > 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,
> >
> > thanks,
> >
> > Andras
> >
> > ______________________________________________
> > R-help at 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.
> >
>



More information about the R-help mailing list