Learn R Programming

speciesgeocodeR (version 1.0-4)

MapGrid: Plotting Rasters in the Geographical Context

Description

A wrapper function to map a raster with country borders. Can be used with the results of RichnessGrid.

Usage

MapGrid(rast, ...)

Arguments

rast
A raster object.
...
Additional arguments past to plot.

See Also

RichnessGrid

Examples

Run this code
data(lemurs)
data(mdg_poly)

inp <- ReadPoints(lemurs, mdg_poly)
outp <- SpGeoCodH(inp)
e <- c(42, 52, -27, -10)
ras <- RichnessGrid(outp, e, reso = 60,  "abu")
MapGrid(ras)

Run the code above in your browser using DataLab