map_reserve: Map a reserve

View source: R/map_reserve.R

map_reserveR Documentation

Map a reserve

Description

Create a map of all the stations in a reserve

Usage

map_reserve(nerr_site_id, text_sz = 6, text_col = "black", f = 0.2)

Arguments

nerr_site_id

chr string of the reserve to map, first three characters used by NERRS or vector of stations to map using the first five characters

text_sz

numeric value for text size of station names, passed to geom_text

text_col

chr string for text color of station names, passed to geom_text

f

numeric passed to make_bbox as expansion around the bounding box for stations at a NERR site, increase to expand map zoom chr

Details

This function is a simple wrapper to functions in the ggmap package which returns a map of all of the stations at a NERRS reserve. The f argument may have to be chosen through trial and error depending on the spatial extent of the reserve. A local data file included with the package is used to get the latitude and longitude values of each station. The files includes only active stations as of January 2015.

Value

A ggplot object for plotting.

See Also

get_map, ggmap, ggplot

Examples

## Not run: 
map_reserve('jac')

## End(Not run)

SWMPr documentation built on June 24, 2024, 5:08 p.m.