Description Usage Arguments Value See Also Examples
Simulate spatially auto-correlated data using random fields.
1 | simulate_data(x, n, model, transform = identity, ...)
|
x |
|
n |
|
model |
|
transform |
|
... |
additional arguments passed to
|
RasterStack-class
object with a
layer for each species.
RFsimulate
,
simulate_cost
, simulate_species
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run:
# create raster
r <- raster(ncol=10, nrow=10, xmn=0, xmx=1, ymn=0, ymx=1)
values(r) <- 1
# simulate data using a Gaussian field
d <- simulate_data(r, n = 1, model = RandomFields::RMgauss())
# plot simulated data
plot(d, main = "random Gaussian field")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.