map_bgs | R Documentation |
Map the average block group mnrisks results with leaflet
map_bgs(
data = NULL,
result_col = "avg_risk",
geoid_col = "geoid",
colors = "viridis",
reverse_colors = TRUE,
signif_digits = 3,
silent = FALSE
)
data |
The dataframe or sf object containing the modeling results for mapping. |
result_col |
Column name containing the modeling concentration/risk results. |
geoid_col |
Block group GEOID colulmn name for mapping results. |
colors |
Color palette to use for block group fill, ex. "viridis", "inferno", "Blues", "Greens" |
reverse_colors |
Flip the color palette order |
signif_digits |
Number of significant figures to show in map labels. |
silent |
Return map as object. Default = FALSE |
## Not run:
# For all block groups
map_bgs(data = mnrisk_results,
result_col = "avg_cancer_risk",
colors = "Blues")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.