[R-sig-Geo] kde output from ks reversed

Robert Hijmans r.hijmans at gmail.com
Fri Feb 18 18:45:55 CET 2011


> Im having trouble with the results from the ks package being reversed. 
> There must be a simple error that I am overlooking?  Does anybody see my
> problem

Perhaps I could have seen what you are overlooking if you had provided a
simple self-contained example. That should be very easy to make in this
case. It is not helpful to start an example script with 

curset <- curset[1:100,] 

This can be rather confusing as you never really know if the raster is
stored from top to bottom, and/or rotated. You could try if this works (I
believe it does):

library(raster)
r <- raster(ud_hpi)
plot(r)
r <- writeRaster(r, 'test.asc')

-- 
View this message in context: http://r-sig-geo.2731867.n2.nabble.com/kde-output-from-ks-reversed-tp6037090p6040866.html
Sent from the R-sig-geo mailing list archive at Nabble.com.



More information about the R-sig-Geo mailing list