opp_map_keyareas: Maps result from track2KBA::findSite()

View source: R/OPPPlots.R

opp_map_keyareasR Documentation

Maps result from track2KBA::findSite()

Description

Produces a more attractive version of the map from track2KBA::findSite() and track2KBA::mapSite().

Usage

opp_map_keyareas(
  track2KBA_UD,
  opp_sites = NA,
  center,
  zoom = NULL,
  coast_scale = 50,
  viridis_option = "D"
)

Arguments

opp_sites

Polygon output from opp_sites(), must include a population size estimate.

center

Data frame containing columns 'Longitude' and 'Latitude' in decimal degrees, for plotting the colony or nest locations.

zoom

Integer from 1:16, indicating the zoom level for map. If NULL the function will calculate the required zoom level.

coast_scale

Mapping resolution for the coastline basemap. Must be one of: 10 - high resolution, 50 - medium resolution, 110 = low resolution.

viridis_option

A character string indicating the colormap option to use. Four options are available: "magma" (or "A"), "inferno" (or "B"), "plasma" (or "C"), "viridis" (or "D", the default option) and "cividis" (or "E").

Value

A ggplot object


popovs/OPPtools documentation built on July 8, 2023, 2:29 a.m.