map.draw: Map creation.

Description Usage Arguments Examples

View source: R/red.R

Description

Creates maps ready to print in pdf or other formats.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
map.draw(
  longlat = NULL,
  layer,
  spName,
  borders = FALSE,
  scale = TRUE,
  legend = FALSE,
  sites = TRUE,
  mcp = FALSE,
  print = FALSE
)

Arguments

longlat

Matrix of longitude and latitude or eastness and northness (two columns in this order) of each occurrence record.

layer

RasterLayer object representing the presence/absence map for the species.

spName

String of species name.

borders

If TRUE country borders are drawn.

scale

If TRUE a distance scale in km is drawn.

legend

If TRUE the legend for the map is drawn.

sites

If TRUE the record locations are drawn.

mcp

If TRUE the minimum convex polygon representing the Extent of Occurrence is drawn.

print

If TRUE a pdf is saved instead of the output to the console.

Examples

1
2
3
4
data(red.records)
data(red.range)
par(mfrow = c(1,2))
map.draw(red.records, layer = red.range, mcp = TRUE)

cardosopmb/red documentation built on May 13, 2020, 2:04 p.m.