On Monday 04 October 2004 20:04, Mike Prager wrote: > 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
Another option is the package "RColorBrewer": > library(RColorBrewer) > colvec <- brewer.pal( 5, "Greys" ) BTW: If you start a new thread, please do not reply to an another email with a different subject/thread. This confuses email clients and web archives (see https://stat.ethz.ch/pipermail/r-help/2004-October/thread.html#57024) Best wishes, Arne -- Arne Henningsen Department of Agricultural Economics University of Kiel Olshausenstr. 40 D-24098 Kiel (Germany) Tel: +49-431-880 4445 Fax: +49-431-880 1397 [EMAIL PROTECTED] http://www.uni-kiel.de/agrarpol/ahenningsen/ ______________________________________________ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html