[R-sig-Geo] Rainbow color for kriged map

José Luis Rotundo rotundo.jose at gmail.com
Mon Nov 10 19:37:26 CET 2014


Dear List,

I am trying to modify the starting or ending color in Rainbow color
function because the first (red) and last (magenta) colors are very
similar. Ideally, I would like to start in orange or drop the magenta at
the end.

I tried modifying the start and end arguments, but the colors do not
change.

Here is part of the script:

brks.eq = classIntervals(ipl$"var1.pred", n = 12, style = "fixed",
FixedBreaks=c(30,31,32,32.5,33,33.5,34,34.5,35,35.5,36,37,38))
rainbow(12, s = 0, v = 0, start = 1, end = max(1, 12 - 1)/12, alpha = 1)
spplot(ipl, "var1.pred", at=brks.eq$brks, col.regions=rainbow,
col="transparent", colorkey = T, sp.layout = combine.layout, main="2006")

Any help would be appreciated.

Thanks a lot in advance.

Jose


-- 


José L. Rotundo
CONICET
Facultad de Ciencias Agrarias
Univ. Nacional de Rosario
Zavalla, Santa Fe
Argentina

	[[alternative HTML version deleted]]



More information about the R-sig-Geo mailing list