Description Usage Arguments Details Value See Also Examples
View source: R/Landscape_Methods.R
Create an object of class SpatialPolygonsDataFrame. Simulate a landscape with neutral and source fields and receptors margins.
1 2 3 4 5 6 7 8 9 10 11 12 13 | 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
)
|
n |
Numeric, numbers of fields |
prop |
Numeric [0,1] toxic fields proportion |
range |
aggregation parameter (range of the spatial exponential covariance of gaussian process) in meters. |
xmin |
x-axis left coordinates |
xmax |
x-axis right coordinates |
ymin |
y-axis bottom coordinates |
ymax |
y-axis top coordinates |
border_size |
A numeric, bbox margin |
prob |
Probability to inflate a filed margin |
mean_thickness |
Margin width expectation |
v_thickness |
Margin width variance |
Execute both simulateInitialPartition and simulateThickMargins functions.
A SpatialPolygonsDataFrame object with n fields, prop pourcentage of toxic fields.
simulateInitialPartition and simulateThickMargins
1 2 3 4 5 6 7 | ## Not run:
land <- simulateLandscape(n=100, prop=0.4, range=10,
xmin=0, xmax=1000, ymin=0, ymax=1000, border_size=100,
prob=runif(1,0.1,0.9), mean_thickness=runif(1,2,20),
v_thickness=50)
plot(land)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.