[R] Changing Colors

Roger Bivand Roger.Bivand at nhh.no
Wed Dec 3 14:21:14 CET 2003


On Wed, 3 Dec 2003, Lars Peters wrote:

> Hello,
> 
> I've got a big problem. I'm using R for geostatistical analyses, especially
> the field-package.
> I try to generate plots after the kriging process with help of
> image.plot(..., col=terrain.colors, ...). Everything works fine, but I want
> to reverse the color-palettes (heat.colors, topo.colors or gray()) to get
> darkest colors at highest data-values instead the other way round.
> 
> Could anyone give me hints or some syntax to resolve that problem??

rev()?

> 
> 
> Thanks and best regards,
> 
> Lars Peters
> 
> 
> -----
> Lars Peters
> 
> University of Konstanz
> Limnological Institute
> D-78457 Konstanz
> Germany
> 
> phone: +49 (0)7531 88-2930
> fax:   +49 (0)7531 88-3533
> e-mail: Lars.Peters at Uni-Konstanz.de
> http://www.uni-konstanz.de/sfb454/tp_eng/A1/doc/peters/peters.html
> http://www.uni-konstanz.de/sfb454/tp_eng/A1/index.htm
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> 

-- 
Roger Bivand
Economic Geography Section, Department of Economics, Norwegian School of
Economics and Business Administration, Breiviksveien 40, N-5045 Bergen,
Norway. voice: +47 55 95 93 55; fax +47 55 95 93 93
e-mail: Roger.Bivand at nhh.no




More information about the R-help mailing list