+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. Valid values are "text", "tcltk", "windows" (on that platform only) and ""
}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