Learn R Programming

SEHmodel (version 0.0.10)

simulateInitialPartition: function simulateInitialPartition

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

Description

function simulateInitialPartition

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

Usage

simulateInitialPartition(n = 500, prop = 0.4, range = 10, xmin = 0,
  xmax = 5000, ymin = 0, ymax = 5000)

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

Value

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

Examples

Run this code
simulateInitialPartition(n=500,prop=0.4,range=10,xmin=0,xmax=5000,ymin=0,ymax=5000)

Run the code above in your browser using DataLab