nestedscales | R Documentation |
This function crops out buffers from a landscape ginven a raster file ( r ), one or more sampling sites ( p ) and radii sizes ( b ). The function returns a list with one raster files for each sampling site and one RasterBricks layer for each provided buffer size.
nestedscales(r,p,b)
r |
a raster object. Raster must be projected to an UTM system, otherwise, buffer sizes will be given in map units. |
p |
a set of sampling sites (SpatialPointsDataFrame, SpatialPoints simple_features) points from where buffers will be calculated. |
b |
a vector of buffer sizes (radii in meters) to be calculated. If a single value is provided the function returns a simple buffer cut. |
Wilson Frantine-Silva
decouple()
decouple.specific()
calc_lsm()
multiplot
## Not run:
path.to.your.raster <- system.file("extdata/raster.grd", package="landscapeDecoupler")
path.to.your.sampling.points <- system.file("extdata/pnts.shp", package="landscapeDecoupler")
r <- raster(path.to.your.raster)
p <- read_points(path.to.your.sampling.points, type="shp")
b <- c(1000,2000,3000)
your.nested.scales <- nestedscales(r,p,b)
multiplot(your.nested.scales$p02)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.