background.raster.buffer: Takes a set of points, a buffer radius, and a mask and...

View source: R/background.raster.buffer.R

background.raster.bufferR Documentation

Takes a set of points, a buffer radius, and a mask and returns a raster based on that buffer radius. Code modified from Elith and Hijmans SDM with R tutorial

Description

NOTE: This function has been replaced by background.buffer.

Usage

background.raster.buffer(points, radius, mask)

Arguments

points

A two column data frame with X and Y coordinates

radius

Radius for circular buffers to draw around points, in meters.

mask

A raster to use as a mask

Value

A raster object with values of 1 in every grid cell falling within the buffer.

Examples

library(ENMTools)
background.raster.buffer(iberolacerta.clade$species$cyreni$presence.points, 100000, euro.worldclim)

danlwarren/ENMTools documentation built on April 23, 2024, 3:12 p.m.