Learn R Programming

paleobioDB (version 0.7.0)

pbdb_orig_ext: pbdb_orig_ext

Description

Plots the appearance of new taxa across time.

Usage

pbdb_orig_ext (data, rank, 
temporal_extent, res, orig_ext,  
colour="#0000FF30", bord="#0000FF", 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. By default rank= "species"

temporal_extent

vector to set the temporal extent (min, max)

res

numeric. to set the intervals of the temporal extent

orig_ext

1= origination, 2=extinction.

colour

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

bord

to set the colour of the border of the polygon

do.plot

TRUE/FALSE (TRUE by default).

Value

a dataframe with the number of first appearances and extinctions of the selected taxon rank across time, and a plot with the first appearances or extinctions of the selected taxon rank across time.

Examples

Run this code
# NOT RUN {
canidae<-  pbdb_occurrences (limit="all", vocab="pbdb",
base_name="Canidae", show=c("phylo", "ident"))

# plot of the evolutive rates.
pbdb_orig_ext (canidae, rank="genus", temporal_extent=c(0, 10), 
res=1, orig_ext=1) 

# plot of the extinction rates.
pbdb_orig_ext (canidae, rank="species", temporal_extent=c(0, 10), 
res=1, orig_ext=2) 
# }

Run the code above in your browser using DataLab