Learn R Programming

paleobioDB (version 0.7.0)

pbdb_temp_range: pbdb_temp_range

Description

constructs a plot and a dataframe with the temporal range of the taxa (species, genera, families, etc.) within in a selected higher taxon.

Usage

pbdb_temp_range (data, rank, col = "#0000FF", 
names = TRUE, do.plot =TRUE)

Arguments

data

dataframe with our query to the paleoBD pbdb_occurrences. Important, it is required to show the name of the families, orders, etc. in the dataframe, to do that set: show=c("phylo", "ident") (see example).

rank

to set which taxon rank you are interested.

col

to change the colour of the bars in the plot, skyblue2 by default.

names

TRUE/FALSE (TRUE by default). To include or not the name of the taxa in the plot

do.plot

TRUE/FALSE (TRUE by default).

Value

a plot and a dataframe with the time span of the taxa selected (species, genus, etc.)

Examples

Run this code
# NOT RUN {
canis_quaternary<- pbdb_occurrences (limit="all", base_name="Canis", 
                 interval="Quaternary", show=c("coords", "phylo", "ident"))
pbdb_temp_range (canis_quaternary, rank="species", names=FALSE)
# }

Run the code above in your browser using DataLab