qm_preview | R Documentation |
This function renders the input vector as a polygon shapefile using the leaflet package.
qm_preview(ref, key, value)
ref |
An |
key |
Name of geographic id variable in the |
value |
A vector of input values created with |
An interactive leaflet map with the features from the defined vector specified in value
highlighted in red.
qm_define
## Not run: # load and format reference data stl <- stLouis stl <- dplyr::mutate(stl, TRACTCE = as.numeric(TRACTCE)) # create cluster cluster <- qm_define(118600, 119101, 119300) # preview cluster qm_preview(ref = stl, key = TRACTCE, value = cluster) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.