[R-sig-Geo] kde output from ks reversed
andrewaduff
andrewaduff at gmail.com
Thu Feb 17 19:36:49 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
## for testing, just the first 100 records, format x coord, y coord
curset <- curset[1:100,]
#Calculate hpi, hpidiag
Hpi1 <- Hpi(x = curset)
## Do the kde
ud_hpi <- kde(x = curset, H = Hpi1)
im <- list(x=ud_hpi$eval.points[[1]], y=ud_hpi$eval.points[[2]],
z=ud_hpiv$estimate)
SPim <- image2Grid(im)
writeAsciiGrid(SPim,
"P:/GISProjects/Support_Projects/JimWatson/GOEA_ForJim_20110201/BBMM/TestBBMM/R/Final_KS/ud_hpi_v2.asc",
attr=ncol(SPim))
http://r-sig-geo.2731867.n2.nabble.com/file/n6037090/ReverseCapture.jpg
--
View this message in context: http://r-sig-geo.2731867.n2.nabble.com/kde-output-from-ks-reversed-tp6037090p6037090.html
Sent from the R-sig-geo mailing list archive at Nabble.com.
More information about the R-sig-Geo
mailing list