rand_mpa: rand_mpa

View source: R/rand_mpa.R

rand_mpaR Documentation

rand_mpa

Description

Randomly generates a network of MPAs

Usage

rand_mpa(grid, areas, adj_edgelist, buff_edgelist = adj_edgelist, max_edge = 4)

Arguments

grid

is a grid covering your planning area

areas

is a vector of mpa area coverage in m^2

adj_edgelist

is the self-intersecting neighbours edgelist of grid, could be done 'in function' but that would slow it down. Used to create contiguous multi-grid cell MPA's.

buff_edgelist

is the intersecting edgelist of grid with a buffered grid, could be done 'in function' but that would slow it down. Used to guarantee minimum distances (buffer distance) between MPAs.

max_edge

is a numeric constraint that represents the largest number of protected neighbouring cells that an unprotected cell can have before it becomes protected itself if the MPA still needs to 'grow'.

Examples

#insert example here

remi-daigle/NetworkConnectR documentation built on March 19, 2022, 7:20 a.m.