addline: Function to add lines to landscape

addlineR Documentation

Function to add lines to landscape

Description

adds a line from x1 to x2 to a raster layer

Usage

addline(r, x1, x2, val, plot = FALSE)

Arguments

r

raster that represents the landscape

x1

from coordinates

x2

to coordinates

val

resistance value 1 is 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.