extract_spatial | R Documentation |
The simulation results object is a list of lists containing spatial (and other) objects and is organised by the following tree diagram:
Replicate
Timestep
Population Raster Stack
Life-Stage Raster
Habitat Suitability Raster (or Stack)
Habitat Raster (if stack is used)
Carrying Capacity Raster
Other Raster Stack
Raster
...
extract_spatial( x, replicate = 1, timestep = 1, landscape_object = "population", stage = 1, misc = 1 )
x |
a simulation_results object |
replicate |
which replicate to extract from a |
timestep |
which timestep to extract from a |
landscape_object |
which landscape object to extract from a
|
stage |
which life-stage to extract from a |
misc |
which misc object to extract from a |
## Not run: ls <- landscape(population = egk_pop, suitability = egk_hab, carrying_capacity = egk_k) pd <- population_dynamics(change = growth(egk_mat), dispersal = kernel_dispersal(max_distance = 2000, dispersal_kernel = exponential_dispersal_kernel( distance_decay = 1000)), density_dependence = ceiling_density()) sim <- simulation(landscape = ls, population_dynamics = pd, habitat_dynamics = NULL, timesteps = 20) # Extract the population raster for the second life-stage in the first # replicate and ninth timestep extract_spatial(sim, replicate = 1, timestep = 9, stage = 2) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.