qualmap (version 0.1.1)

qm_preview: Preview Input

Description

This function renders the input vector as a polygon shapefile using the leaflet package.

Usage

qm_preview(ref, key, value)

Arguments

ref

An sf object that serves as a master list of features

key

Name of geographic id variable in the ref object to match input values to

value

A vector of input values created with qm_define

Value

An interactive leaflet map with the features from the defined vector specified in value highlighted in red.

See Also

qm_define

Examples

Run this code
# 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)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab