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='', ...)
format
Character. Output file type. See writeRaster
datatype
Character. Output data type. See dataType
overwrite
Logical. If TRUE
, "filename" will be overwritten if it exists
progress
Character. "text", "window", or "" (the default, no progress bar)
}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