Learn R Programming

ENMTools (version 1.1.2)

background.raster.buffer: 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)

Value

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

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

Examples

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

Run the code above in your browser using DataLab