MapSites {lifeR}R Documentation

Map of sites with highest number of missing species

Description

Map of sites with highest number of missing species

Usage

MapSites(sites, center_lng = NULL, center_lat = NULL)

Arguments

sites

A data.frame with at least the following columns:

locName

Name of the location.

locId

eBird identifier of the location.

num_new

Number of new species at site

lat

Numeric latitude in decimal degrees

lng

Numeric longitude in decimal degrees

center_lng

center_lat numeric decimal degrees longitude and latitude of the geographic center used for searching sites.

Details

The function is primarily used by SitesReport via the template RMarkdown file used to build reports. It is not intended for standalone use.

Value

A ggplot object; if map server is unavailable, returns NULL.

Examples

## Not run: 
  # Create data frame with required columns
  localities <- data.frame(locName = c("Sweetwater Wetlands", "Reid Park"),
  locID = c("L208918", "L227274"), num_new = c(3, 5),
  lat = c(32.279, 32.210), lng = c(-111.022, -110.924))
  lifeR::MapSites(sites = localities)

## End(Not run)


[Package lifeR version 1.0.2 Index]