map_stations: Map Station Search

Description Usage Arguments Value Examples

View source: R/stations.R

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

1
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

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

## End(Not run)

CDECRetrieve documentation built on Sept. 24, 2021, 9:07 a.m.