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      [email protected]

_______________________________________________
R-sig-Geo mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-geo

Reply via email to