nestedscales: Nested Scales

View source: R/nestedscales.R

nestedscalesR Documentation

Nested Scales

Description

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.

Usage

nestedscales(r,p,b)

Arguments

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.

Author(s)

Wilson Frantine-Silva

See Also

decouple() decouple.specific() calc_lsm() multiplot

Examples

## 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)

wilsonfrantine/landscapeDecoupler documentation built on Oct. 31, 2024, 3:45 a.m.