meta_leaflet: Create a map of RAWS stations

View source: R/meta_leaflet.R

meta_leafletR Documentation

Create a map of RAWS stations

Description

Generates a map of RAWS stations given station metadata. This station metadata can be generated by wrcc_createMeta() or cefa_createMeta(). Parameters such as radius, stroke, color, opacity, fillColor fillOpacity, and weight can be passed in to adjust features of the map.

Usage

meta_leaflet(
  meta = NULL,
  radius = 3.5,
  stroke = TRUE,
  color = "blue",
  opacity = 0.5,
  fillColor = "blue",
  fillOpacity = 0.5,
  weight = 1
)

Arguments

meta

Station metadata created by wrcc_createMeta() or cefa_createMeta().

radius

Circle radius.

stroke

Logical specifying whether to draw stroke along the path.

color

Stroke color.

opacity

Stroke opacity.

fillColor

Fill color.

fillOpacity

Fill opacity.

weight

Stroke width in pixels.

Value

Leaflet map of stations.

References

RAWS USA Climate Archive

See Also

wrcc_createMeta

cefa_createMeta

Examples


library(RAWSmet)

wa_meta <- example_wrcc_meta
meta_leaflet(wa_meta)



MazamaScience/RAWSmet documentation built on May 6, 2023, 6:57 a.m.