Learn R Programming

SEHmodel (version 0.0.10)

simulateLandscape: function simulateLandscape

Create an object Landscape. Simulate a landscape with neutral and source fields and receptors margins.

Description

function simulateLandscape

Create an object Landscape. Simulate a landscape with neutral and source fields and receptors margins.

Usage

simulateLandscape(n = 500, prop = 0.4, range = 10, xmin = 0,
  xmax = 5000, ymin = 0, ymax = 5000, border_size = 200,
  prob = runif(1, 0.1, 0.9), mean_thickness = runif(1, 2, 20),
  v_thickness = 50)

Arguments

n
Numeric, numbers of fields
prop
Numeric [0,1] toxic fields proportion
range
truc
xmin
x left coordinates
xmax
x right coordinates
ymin
y top coordinates
ymax
y bottom coordinates
border_size
A numeric, bbox margin
prob
Probability to inflated a border
mean_thickness
Border width expectation
v_thickness
Border width variance

Value

  • An S4 Landscape object with n fields, prop pourcentage of toxic fields of size (xmin,xmax) (ymin,ymax)

Examples

Run this code
simulateLandscape(100,0.4,10,0,1000,0,1000,100,runif(1,0.1,0.9),runif(1,2,20),50)

Run the code above in your browser using DataLab