Count number of taxa in an occurrence data frame
Source:R/pbdb_taxonomic_functions.R
pbdb_subtaxa.Rd
Count the number of taxa (species, genera, families, orders, classes, and phyla) in an occurrence data frame.
Arguments
- data
Data frame from a query to PaleobioDB as returned by the
pbdb_occurrences()
function using the argumentshow = "class"
orshow = "classext"
.- do_plot
Logical indicating whether to produce a plot (
TRUE
by default).- col
Colour of the histogram.
Examples
if (FALSE) { # \dontrun{
canidae_quat <- pbdb_occurrences(
limit = "all", base_name = "Canidae", interval = "Quaternary",
show = c("coords", "classext", "ident"), vocab = "pbdb"
)
pbdb_subtaxa(canidae_quat)
} # }