[R-sig-Geo] Changing color ramp in spplot()

Iuri Gavronski iuri at proxima.adm.br
Fri Mar 19 19:52:31 CET 2010


>>> spplot(meuse, "zinc", cuts=7, col.regions=cm.colors)
>> Error in col.regions[cols] : object of type 'closure' is not subsettable
>
> no, you need to pass colors, not a color palette generating function.

Have you tried?
spplot(meuse, "zinc", cuts=7, col.regions=cm.colors())



More information about the R-sig-Geo mailing list