View source: R/tbd_dynamic_map_mi.R
tbd_dynamic_map_mi | R Documentation |
df : The data frame must contain a name column (county or PIHP or CMHSP names) and summary column
i.e... summarized number.
map_type : Basic map with county or PIHP or CMHSP boundaries is drawn based on the map_type argument,
Valid values are county, pihp, cmhsp, tract.
pihp_fill : A PIHP filtered dataset must be provided to filter the selected PIHP and highlight the
boundaries of the selected PIHP.
cmh_fill : A CMHSP filtered dataset must be provided to filter the selected CMHSP and highlight the
boundaries of the selected CMHSP.
col_palette : Choose a color palette of any choice to populate the summarized data.
add tiles : Add a tile layer from a known map provider.
border_col : Fill border color.
bins : Give the bins range in a collection.
legend_label : Label of the legend.
tbd_dynamic_map_mi(
df,
map_type,
pihp_filter,
cmh_filter,
col_pallet = "viridis",
addtiles = "Stamen.TonerLite",
border_col = "white",
bins = c(0, 1, 3, 5, 10, 15, 20, 25, 30, 35, 45, 50),
legend_label = "range"
)
df |
A dataframe |
map_type |
A map type (Available map types are tract, county, cmhsp, pihp) |
pihp_filter |
A PIHP filtered dataframe |
cmh_filter |
A CMHSP filtered dataframe |
col_pallet |
A color pelette |
addtiles |
A provider tile |
border_col |
Prefered border color |
bins |
Prefered bin distribution |
legend_label |
Prefered label of the legend |
## Not run:
tbd_dynamic_map_mi(
df = select_df,
map_type = input$group,
pihp_filter = pihp_deaths_filt,
cmh_fillter = cmh_deaths_filt,
col_pallet = "viridis",
addtiles = "Stamen.TonerLite",
border_col = "white",
bins = c(0,1,3,5,10,15,20,25,30,35,45,55),
legend_label ="range")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.