Function to add a polygon to a landscape
adds a polygon to a raster layer
addpoly(r, pol, val, plot = T)
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 |
returns modified raster layer
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.