rangemap_explore: Exploring occurrences before creating range maps

View source: R/rangemap_explore.R

rangemap_exploreR Documentation

Exploring occurrences before creating range maps

Description

rangemap_explore generates simple figures to visualize species occurrence data in the geography.

Usage

rangemap_explore(occurrences, show_countries = FALSE, graphic_device = FALSE,
                 xlim = NULL, ylim = NULL)

Arguments

occurrences

a data.frame containing geographic coordinates of species occurrences, columns must be: Species, Longitude, and Latitude. Geographic coordinates must be in decimal degrees (WGS84).

show_countries

(logical) if TRUE, ISO 3 country codes will label country polygons. Default = FALSE.

graphic_device

(logical) if TRUE, a new graphic device is opened to plot the figure. Default = FALSE.

xlim

(numeric) vector of length = 2 with the limits in longitude for the plot. The default, NULL, uses the limits of countries with occurrences.

ylim

(numeric) vector of length = 2 with the limits in latitude for the plot. The default, NULL, uses the limits of countries with occurrences.

Details

Base map of countries of the world is a SpatialPolygonsDataFrame downloaded from the Natural Earth database (scale = 50).

Value

A simple figure of species occurrences in a geographical context.

Examples

# getting the data
data("occ_f", package = "rangemap")

# simple figure of the species occurrence data
rangemap_explore(occurrences = occ_f, show_countries = TRUE)

manubio13/rangemap documentation built on May 9, 2022, 6:27 a.m.