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


green-striped-gecko/PopGenReport documentation built on Oct. 15, 2023, 6:22 a.m.