[R-sig-Geo] Inverting the scale in heat.colors
Greg Snow
Greg.Snow at imail.org
Mon Sep 13 18:33:10 CEST 2010
Others have shown how to create your own palette, which is good general information. But for your case you may be able to simply use the rev function with heat.colors.
--
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow at imail.org
801.408.8111
> -----Original Message-----
> From: r-sig-geo-bounces at stat.math.ethz.ch [mailto:r-sig-geo-
> bounces at stat.math.ethz.ch] On Behalf Of Manuel Spínola
> Sent: Sunday, September 12, 2010 7:05 AM
> To: r-sig-geo at stat.math.ethz.ch
> Subject: [R-sig-Geo] Inverting the scale in heat.colors
>
> Dear list members,
>
> I am plotting the result of a kriging with spplot and I would like to
> reverse the colors in the heat.colors palette for the col.regions
> argument. In other words I want the red colors to represent higher
> values than the yellow colors to represent temperature.
> Best,
>
> Manuel
>
> --
> Manuel Spínola, Ph.D.
> Instituto Internacional en Conservación y Manejo de Vida Silvestre
> Universidad Nacional
> Apartado 1350-3000
> Heredia
> COSTA RICA
> mspinola at una.ac.cr
> mspinola10 at gmail.com
> Teléfono: (506) 2277-3598
> Fax: (506) 2237-7036
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
More information about the R-sig-Geo
mailing list