View source: R/label_standardize.R
label_standardize | R Documentation |
Creates a label-vector for Leaflet map from a supplied dataframe and character string supplied to a glue function
label_standardize(df, label_text)
df |
A spatial dataframe that will be supplied to a leaflet() function |
label_text |
A data-masked text string fed to a glue function and later read as HTML, so HTML elements should be incorporated (e.g., <p></p>) |
A character vector of labels that will be supplied in a leaflet map
label_standardize(leafletwrappers::wards, "Ward name: {WARD}<p></p> Area: {Area}")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.