I created a home range in R using kernelUD but when I exported it into ArcGIS I realised the points/home range had been plotted in the wrong place. They were meant to be in South Africa but for some reason they occur in the south Atlantic ocean. Does anyone know how to change this? I've included the code below.
elephant.all.sp <- SpatialPoints(elephant[,c("GPS.S","GPS.E")])
proj4string(elephant.all.sp)=CRS("+init=epsg:32736")
elephant.all.sp <- spTransform(elephant.all.sp,CRS("+init=epsg:32736"))
plot(elephant.all.sp)
e.all.kde <- kernelUD(elephant.all.sp, h="href")
image(e.all.kde)
e.all.rast <- (raster(as(e.all.kde, "SpatialPixelsDataFrame")))
plot(e.all.rast)
plot(elephant.all.sp, add=T, col="blue")
e.all.95.kde <- getverticeshr(e.all.kde, percent = 95,unin = "m",unout = "km2")
plot(e.all.95.kde)
writeOGR(e.all.95.kde, dsn = ".", layer = "PilotWhale50KDE_Final",
driver="ESRI Shapefile")
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…