[R-sig-Geo] cropping in raster package loses color table?

Robert Hijmans r.hijmans at gmail.com
Tue Mar 1 01:17:02 CET 2011


Don,

> The colortable is apparently not preserved when using crop() from the 
> raster package. This is something I would find useful. 

I agree. Color table support is relatively recent and it is ignored by most
functions (and hence lost when using crop). That needs improvement.

> (also, is there a better way to set the colortable?) 

No, there are no functions for that yet. So you'll have to do that by hand.

Thanks for pointing this out.

Robert

-- 
View this message in context: http://r-sig-geo.2731867.n2.nabble.com/cropping-in-raster-package-loses-color-table-tp6075534p6075542.html
Sent from the R-sig-geo mailing list archive at Nabble.com.



More information about the R-sig-Geo mailing list