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

Edzer Pebesma edzer.pebesma at uni-muenster.de
Fri Mar 19 20:31:00 CET 2010


Iuri Gavronski wrote:
>>>> 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())

Have you tried:

cm.colors()

or

?cm.colors

?
-- 
Edzer Pebesma
Institute for Geoinformatics (ifgi), University of Münster
Weseler Straße 253, 48151 Münster, Germany. Phone: +49 251
8333081, Fax: +49 251 8339763  http://ifgi.uni-muenster.de
http://www.52north.org/geostatistics      e.pebesma at wwu.de



More information about the R-sig-Geo mailing list