data(re.out)
presences <- system.file("examples/presences.asc", package="MetaLandSim")
mask <- system.file("examples/landmask.asc", package="MetaLandSim")
require(spgrass6)
#Initializing a GRASS session in a temporal directory:
#### Under Linux systems:
initGRASS("/usr/bin/grass", home=tempdir())
#### Under Windows systems:
initGRASS("C:/GRASS", home=tempdir())
range_raster(presences.map=presences, re.out=re.out, mask.map==mask) -> range.map
plot(range.map)
require(rasterVis)
levelplot(range.map, contour=TRUE)
Run the code above in your browser using DataLab