Learn R Programming

paleobioDB (version 0.7.0)

pbdb_richness: pbdb_richness

Description

Plots the number of the interested.

Usage

pbdb_richness (data, rank, res, temporal_extent, colour, bord, do.plot)

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"

res

numeric. to set the intervals of the temporal extent

temporal_extent

vector to set the temporal extent (min, max)

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 plot and a dataframe with the richness aggregated by the taxon rank in the specified temporal extent and resolution.

Examples

Run this code
# NOT RUN {
data<-  pbdb_occurrences (limit="all", vocab="pbdb",
base_name="Canidae", show=c("phylo", "ident"))
pbdb_richness (data, rank="species", res=1, temporal_extent=c(0,3))
# }

Run the code above in your browser using DataLab