meta_leaflet | R Documentation |
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.
meta_leaflet(
meta = NULL,
radius = 3.5,
stroke = TRUE,
color = "blue",
opacity = 0.5,
fillColor = "blue",
fillOpacity = 0.5,
weight = 1
)
meta |
Station metadata created by |
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. |
Leaflet map of stations.
wrcc_createMeta
cefa_createMeta
library(RAWSmet)
wa_meta <- example_wrcc_meta
meta_leaflet(wa_meta)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.