Learn R Programming

briskaR (version 1.0.4)

simulateThickMargins: Simulate thick margin to a landscape

Description

Simulate thick margins as receptors in a landscape.

Usage

simulateThickMargins(
  objectL,
  border_size = 200,
  prob = runif(1, 0.1, 0.9),
  mean_thickness = runif(1, 2, 20),
  v_thickness = 50
)

Arguments

objectL

sf, sp or Landscape (earlier version of briskaR).

border_size

A numeric, bbox margin

prob

Probability to inflate a margin

mean_thickness

Margin width expectation in meter

v_thickness

Margin width variance in meter

Value

A SpatialPolygonsDataFrame object

Details

Margin width use a Gamma distribution with shape and scale parameters based on thickness mean and variance.

See Also

simulateInitialPartition and simulateLandscape

Examples

Run this code
# NOT RUN {
data(maize_65)
plot(maize.landscape)
landscape.margin <- simulateThickMargins(maize.landscape)
plot(landscape.margin) 
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab