Skip to content
Prev 7113 / 29559 Next

local R2

On Mon, 7 Dec 2009, Eda Laze wrote:

            
Since the data are projected, they are in UTM zone 34, use longlat=FALSE. 
As a sanity check, assign the projection to the object:

proj4string(obj) <- CRS("+proj=utm +zone=34 +datum=WGS84")

then inverse project to longlat:

library(rgdal)
obj_ll <- spTransform(obj, CRS("+proj=longlat +datum=WGS84"))

and rerun the analysis with longlat=TRUE (the bandwidth will be in km not 
m), and even do:

writeOGR(obj_ll, "obj.kml", "obj", driver="KML")

for the input object, displaying in Google Earth or similar.

Roger