Last chance! 50% off unlimited learning
Sale ends in
+proj=longlat
) and in map units (typically meters) when it is projected.distanceFromPoints(object, xy, filename='', ...)
writeRaster
distance
, gridDistance
, pointDistance
r <- raster(ncol=36,nrow=18)
xy = c(0,0)
dist <- distanceFromPoints(r, xy)
#plot(dist)
Run the code above in your browser using DataLab