View source: R/map_receptors.R
| map_receptors | R Documentation | 
Map the average block group mnrisks results with leaflet
map_receptors(
  data = NULL,
  result_col = "cancer_risk",
  receptor_col = "receptor",
  colors = "viridis",
  reverse_colors = TRUE,
  size = 5,
  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.  | 
receptor_col | 
 Column name containing the receptor IDs.  | 
colors | 
 Color palette to use for block group fill, ex. "viridis", "inferno", "Blues", "Greens"  | 
reverse_colors | 
 Flip the color palette order  | 
size | 
 Receptor or circle radius. Default = 5  | 
signif_digits | 
 Number of significant figures to show in map labels  | 
silent | 
 Return map as object. Default = FALSE  | 
## Not run: 
map_receptors(data = mnrisk_results,
              result_col = "cancer_risk",
              colors = "inferno")
## End(Not run)               
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.