Usage
opt.landgen(landscape, nlocations, mindist = 0, fixed = NULL, method, NN = 8, iter = 100, retry = 10, mask = NULL, plot = TRUE)
Arguments
landscape
resistance layer as a raster object (if not projected dimensions are assumed to be in meters!!)
nlocations
the number of locations
mindist
minimal distance in map units (meter if not specified)
fixed
n fixed locations, provided as a data.frame with dimenstions nx2
method
least cost path algorithm provided by the gdistance package. Options are "leastcost", "SPDistance" and "commute". see function costdistances.
NN
number of next neighboring cells to be used, default is 8. see function costdistances.
iter
number of iterations that should be used to find an optimised design. Try initially the default and if it runs fast (depends on the type of costdistance an d dimenstions of landscape), increase to higher values.
retry
number of retries if optimisation is not possible in a certain iteration (due to mindist and/or fixed locations). Defaults to 10, which should be sufficient in most cases.
mask
a raster object that masks positions which are not available. Areas which are not to be used for locations are coded as NA (not available), all other values are treated as suitable for placing locations.
plot
if true, some plots are presented that show the histogramm, ecdf of the best (and the worst scenario).