map_stations: Map Station Search

View source: R/stations.R

map_stationsR Documentation

Map Station Search

Description

Populate a leaflet map with the results of cdec_stations() call. The function makes use of leaflet, and so will work only if this is installed on the system. This function is bundled simply for exploration purposes, it is highly suggested to make use of leaflet for production maps.

Usage

map_stations(.data, ...)

Arguments

.data

result of a cdec_stations() call

...

named arguments passed into leaflet::addCircleMarkers

Value

a leaflet map widget with circle markers at the locations of CDEC stations

Examples

## Not run: 
if (interactive()) {
    cdec_stations(county = "alameda") %>% map_stations(label=~name, popup=~station_id)
}

## End(Not run)

FlowWest/CDECRetrieve documentation built on Oct. 10, 2022, 9:31 p.m.