Description Usage Arguments Value See Also Examples
Generates a random set of species using random field models. By default, the output will contain values between zero and one.
1 2 | simulate_species(x, n = 1, model = RandomFields::RMgauss(),
transform = stats::plogis, ...)
|
x |
|
n |
|
model |
|
transform |
|
... |
additional arguments passed to
|
RasterStack-class
object.
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 4 species
spp <- simulate_species(r, 4)
# plot simulated species
plot(spp, main = "simulated species distributions")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.