Learn R Programming

paleobioDB (version 0.7.0)

pbdb_subtaxa: pbdb_subtaxa

Description

count the number of subtaxa within a given taxa. e.g. number of species within a genus.

Usage

pbdb_subtaxa (data, do.plot, col)

Arguments

data

dataframe with our query to the paleoBD pbdb_occurrences

do.plot

by default this function make a plot to visualize the distribution of taxa. Set to FALSE to skip the plot.

col

set the colour of the histogram. skyblue2 by default.

Value

a plot and a dataframe with the number of subtaxa in the data.

Examples

Run this code
# NOT RUN {
canidae_quat<-  pbdb_occurrences (limit="all", 
base_name="Canidae",  interval="Quaternary", 
show=c("coords", "phylo", "ident"))
pbdb_subtaxa (canidae_quat)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab