plot_species_abundance {gen3sis} | R Documentation |
Plot a species' abundance on a given landscape
Description
Plot a species' abundance on a given landscape
Usage
plot_species_abundance(species, landscape)
Arguments
species |
a single species object |
landscape |
a landscape object |
Value
no return value, called for plot
Examples
# get path to output objects
datapath <- system.file(file.path("extdata", "WorldCenter"), package = "gen3sis")
# load landscape and species at time step zero
landscape_t_0 <- readRDS(
file.path(datapath, "output/config_worldcenter", "landscapes", "landscape_t_0.rds"))
species_t_0 <- readRDS(
file.path(datapath, "output/config_worldcenter", "species", "species_t_0.rds"))
# plot species 13 range and abundances
plot_species_abundance(species_t_0[[13]], landscape_t_0)
# oh, a South American one!
# plot ranges and abundances of 3 species (i.e. 1, 21 and 32)
oldpar <- par(no.readonly = TRUE)
par(mfrow=c(1,3))
plot_species_abundance(species_t_0[[1]], landscape_t_0)
plot_species_abundance(species_t_0[[7]], landscape_t_0)
plot_species_abundance(species_t_0[[11]], landscape_t_0)
par(oldpar)
[Package gen3sis version 1.5.11 Index]