View source: R/distweight_lulc.R
distweight_lulc | R Documentation |
Calculate distance weighted sum of raster classes, assuming middle pixel is focal cell.
distweight_lulc(land_raster, forage_range)
land_raster |
File path to land cover raster (centered on sampling location) |
forage_range |
Mean foraging range of bee community of interest (determines shape of distance weighting curve) |
Distance weighting is an exponential decline function with a maximum distance of 'forage_range' *2. See Lonsdorf et al (2009) for details. 'land_raster' must have a radius greater than 'forage_range'*2, but can be much larger (whole county). The raster used for distance weighting is cropped to radius of 'forage_range' times 2.
Usage example coming soon.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.