View source: R/plot_dprofile.R
plot_dprofile | R Documentation |
Function to plot density profiles of occurrences through time using the output of @seealso densify.
plot_dprofile(x, taxon, exit = TRUE)
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 |
NULL, the plotted density profile
# 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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.