To plot, just use 'redshade'

plot(1:10, col=redshade, cex=4,pch=16)



On Wed, Mar 17, 2010 at 6:55 AM, Hadassa Brunschwig <
hadassa.brunschwig@mail.huji.ac.il> wrote:

> Hi
>
> I would like to produce a red shading I figured the easiest way
> to do that would be to use rgb in the following way:
>
> a            <- seq(0,0.9,by=0.1)
> redshade <- rgb(red=1,green=a, blue=a)
>
> However, I don't really know how to plot things using
> hexadecimal colors. I used a function which tries to
> find the closest color to the rgb shades but it didn't
> work very well.
>
> Any comments would be appreciated.
> Thanks,
> Hadassa
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help@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<http://www.r-project.org/posting-guide.html>
> and provide commented, minimal, self-contained, reproducible code.
>



-- 
Jim Holtman
Cincinnati, OH
+1 513 646 9390

What is the problem that you are trying to solve?

	[[alternative HTML version deleted]]

