[R-sig-Geo] non symetric color scale

hadley wickham h.wickham at gmail.com
Thu Sep 18 02:39:30 CEST 2008


For a start, have you looked at the output of seq(-0.032,0,0.0025)?  I
don't think it does what yo think it does.

Hadley

On Wed, Sep 17, 2008 at 7:30 PM, Marie-Anne C Serve <MAServe at lbl.gov> wrote:
> I would like to create a color scale covering values from -0.032 to 0.0025 with a neutral color (say grey or white) at 0. I tried to use designer.colors but i understand that the values have to be between 0 and 1. is there any simple mean to use either this function or another to get what i am looking for?
> here is what i tried:
> filled.contour(1:185,1:185,O3diff[,,1],xlim=c(1,185),ylim=c(1,185),asp=1,xlab="Xcell",ylab="Ycell",
> designer.colors(n=20,col=c("darkblue","white","darkred"),seq(-0.032,0,0.0025)),
> zlim=c(-0.032,0.0025),key.axes=axis(4,seq(-0.032,0.0025,by=0.0005),asp=1))
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>



-- 
http://had.co.nz/




More information about the R-sig-Geo mailing list