Learn R Programming

fossilbrush (version 1.0.6)

plot_dprofile: plot_dprofile

Description

Function to plot density profiles of occurrences through time using the output of @seealso densify.

Usage

plot_dprofile(x, taxon, exit = TRUE)

Value

NULL, the plotted density profile

Arguments

x

The list output of @seealso densify

taxon

A character vector of length one, specifying one of the taxon names in x to be plotted

exit

Restore base plotting parameters on function exit (default as a requirement for CRAN). Can be set to false to allow other elements to be aded to a plot

Examples

Run this code
# load dataset
data("brachios")
# subsample brachios to make for a short example runtime
set.seed(1)
brachios <- brachios[sample(1:nrow(brachios), 1000),]
# densify ranges
dens <- densify(brachios)
plot_dprofile(dens, "Atrypa")

Run the code above in your browser using DataLab