[R] A newbye question : Creating a grey palette
Mike Prager
Mike.Prager at noaa.gov
Mon Oct 4 20:04:55 CEST 2004
At 11:09 AM 10/04/2004, you wrote:
>Hi all
>
>I'd like to create a grey palette for a filled.contour()
>from blank (smallest values) to black (large values)
I have used somethig like this with bar plots:
colvec <- gray(sqrt(seq(from=0.05, to=1.0, length=ncolor)))
That will save a color palette in colvec for use in your call.
MHP
--
Michael Prager, Ph.D. <Mike.Prager at noaa.gov>
NOAA Beaufort Laboratory
Beaufort, North Carolina 28516
http://shrimp.ccfhrb.noaa.gov/~mprager/
***
More information about the R-help
mailing list