Learn R Programming

paleobioDB (version 0.7.0)

pbdb_map: pbdb_map

Description

Maps the fossil records

Usage

pbdb_map (data, col.int="white" ,pch=19, col.ocean="black", main=NULL,
col.point=c("light blue","blue"), ...)

Arguments

data

Input dataframe. This dataframe is the output of pbdb_occurrences function using the argument: show = "coords". See too: Details and Examples

col.int

The colour of the mainland.

pch

See: par

col.ocean

The colour of the ocean.

main

To set the title of the map. See: par

col.point

Two or more colours. To generate the colour gradient used to show the number of occurrences per cell in map

...

Others parameters. See par and map

Value

A map showing the distribution of the fossil records, with the points with a color gradient, according to the number of occurrences per cell.

Details

The function opens a new window for the map

CAUTION! The argument show = "coords" in pbdb_occurrences function is required. We recommend the use of a cairo device (X11) for better visualization of the graphs. See Examples

See Also

See pbdb_occurrences, map, par and colors help pages

Examples

Run this code
# NOT RUN {
data<- pbdb_occurrences (limit="all", vocab= "pbdb",
base_name="Canis", show="coords")
X11(width=12, height=8)
pbdb_map(data)
pbdb_map(data,pch=1)
pbdb_map(data,pch=19,col.point=c("pink","red"), col.ocean="light blue",
main="canis")
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab