addpoly: Function to add a polygon to a landscape

View source: R/popdynfun.r

addpolyR Documentation

Function to add a polygon to a landscape

Description

adds a polygon to a raster layer

Usage

addpoly(r, pol, val, plot = TRUE)

Arguments

r

raster that represents the landscape

pol

coordinates of the polygon

val

resistance value, One equals no resistance

plot

switch if landscape should be plotted

Value

returns modified raster layer


PopGenReport documentation built on Oct. 11, 2023, 9:07 a.m.