map_stations: Map Station Search

Description Usage Arguments Examples

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

Examples

1
2
3
if (interactive()) {
    cdec_stations(county = "alameda") %>% map_stations(label=~name, popup=~station_id)
}

FlowWest/CDECRetrieve documentation built on May 8, 2019, 9:21 a.m.