Learn R Programming

paleotree (version 3.1.3)

graptPBDB: Example Occurrence and Taxonomic Datasets of the Graptolithina from the Paleobiology Database

Description

Example datasets consisting of (a) occurrence data and (b) taxonomic data downloaded from the Paleobiology Database API for the Graptolithina.

Arguments

Format

The example occurrence dataset (graptOccPBDB) is a data.frame consisting of 5900 occurrences (rows) and 35 variables (columns). The example taxonomy dataset (graptTaxaPBDB) is a data.frame consisting of 364 formal taxa (rows) and 53 variables (columns). Variables are coded in the 'pbdb' vocabulary of the PBDB API v1.2.

Details

This example PBDB data is included here for testing functions involving occurrence data and taxonomy in paleotree.

See Also

taxonSortPBDBocc, occData2timeList, makePBDBtaxonTree, plotOccData

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
#original code used to obtain this dataset on March 21st, 2015
		# using version 1.2 of the Paleobiology Database API

# (sorry, URLs removed as they lead to the PBDB test server...)

save(graptOccPBDB,graptTaxaPBDB,file = "graptPBDB.rdata")

# }
# NOT RUN {
# load archived example data
data(graptPBDB)

# let's visualize who entered the majority of the occurrence data
pie(sort(table(graptOccPBDB$enterer)))
# and now who authorized it
pie(sort(table(graptOccPBDB$authorizer)))
# I apologize for using pie charts.

# Let's look at age resolution of these occurrences
hist(graptOccPBDB$early_age-graptOccPBDB$late_age,
	main = "Age Resolution of Occurrences", xlab = "Ma")

#distribution of taxa among taxonomic ranks
table(graptTaxaPBDB$taxon_rank)
barplot(table(graptTaxaPBDB$taxon_rank))

# }

Run the code above in your browser using DataLab