pbdb_map_occur

Description

Creates a RasterLayer object and a plot of the sampling effort (number of fossil records per cell).

Usage

1
2
pbdb_map_occur (data, res=5, col.int="white", col.ocean="black",
col.eff=c("light blue","blue"), do.plot=TRUE, ...)

Arguments

data

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

res

the resolution of the RasterLayer object (in decimal degrees). See: raster

col.int

The colour of the mainland

col.ocean

The colour of the ocean

col.eff

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

do.plot

Logical; TRUE the function returns a RasterLayer and a plot.

...

Others parameters. See par and map

Details

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

Value

A RasterLayer object and a plot with the sampling effort (number of fossil records per cell). This RasterLayer object have the resolution controlled by the argument res. The deflaut is res=1.

See Also

See pbdb_occurrences, map, par and colors help pages

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
data<- pbdb_occurrences (limit="all", vocab= "pbdb", base_name="Canis",
show="coords")
X11(width=13, height=7.8)
pbdb_map_occur (data,res=2)
## to obtain the raster file without plotting it
pbdb_map_occur (data,res=3,do.plot=F)

## End(Not run)