plot_richness {gen3sis} | R Documentation |
Plot the richness of the given list of species on a landscape
Description
Plot the richness of the given list of species on a landscape
Usage
plot_richness(species_list, landscape)
Arguments
species_list |
a list of species to use in the richness calculation |
landscape |
a corresponding landscape object |
Value
no return value, called for plot
Examples
## plot from saved outputs
# get path containing example rasters
datapath <- system.file(file.path("extdata", "WorldCenter"), package="gen3sis")
# get species at t0
species_t_0 <- readRDS(file.path(datapath,
"output/config_worldcenter/species/species_t_0.rds"))
# get landscape at t0
landscape_t_0 <- readRDS(file.path(datapath,
"output/config_worldcenter/landscapes/landscape_t_0.rds"))
# plot richness
plot_richness(species_t_0, landscape_t_0)
## plot from within observer
# call plot_richness from inside the end_of_timestep_observer function
# at the config file:
## Not run:
plot_richness(data$all_species, data$landscape)
## End(Not run)
[Package gen3sis version 1.5.11 Index]