Map Function

County level dataset – column name for the name must be “name”

Census tract level dataset – column name for the name must be “name”

County level dataset – column name for the ID must be “countyid”

Census tract level dataset – column name for the ID must be “tractid”

The following are the instructions to use the functions.

static_map:

### map_type

df(Data Frame)

For example:

County level summarized dataset must be provided when County is selected in the map type. PIHP level summarized dataset must be provided when PIHP is selected in the map type and CMHSP level summarized dataset must be provided when CMHSP is selected in the map type.

col_pallet

addtiles

border_col

bins

legend_label

dynamic_map:

### map_type

df(Data Frame)

For example:

County level summarized dataset must be provided when County is selected in the map type. PIHP level summarized dataset must be provided when PIHP is selected in the map type and CMHSP level summarized dataset must be provided when CMHSP is selected in the map type.

pihp_filter

For example:

pihp_deaths_filt<-

drug_death %>%

filter(PIHPname == input$select_pihp) %>%

group_by(PIHPname) %>%

summarize( deaths = sum(deaths, na.rm = TRUE), deaths_per_100k = round(mean(deaths_per_100k),digits = 2))

cmh_filter

For example:

cmh_deaths_filt<-

drug_death %>%

filter(CMHSP == input$select_cmh) %>%

group_by(CMHSP) %>%

summarize( deaths = sum(deaths, na.rm = TRUE), deaths_per_100k = round(mean(deaths_per_100k),digits = 2))

col_pallet

addtiles

border_col

bins

legend_label

Address to census Tract



j-hagedorn/TBDfun documentation built on June 13, 2024, 5:38 a.m.