tbd_static_map_mi: Static Map Function

View source: R/tbd_static_map_mi.R

tbd_static_map_miR Documentation

Static Map Function

Description

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.

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.

legend_label : Label of the legend.

Usage

tbd_static_map_mi(
  df,
  map_type,
  col_pallet = "viridis",
  addtiles = "Stamen.TonerLite",
  border_col = "white",
  legend_label = "range"
)

Arguments

df

A dataframe

map_type

A map type (Available map types are tract, county, cmhsp, pihp)

col_pallet

A color pelette

addtiles

A provider tile

border_col

Prefered border color

legend_label

Prefered label of the legend

Examples

## Not run: 
tbd_static_map_mi(
   df = dataframe,
   map_type = county,
   col_pallet = "viridis",
   addtiles = "Stamen.TonerLite",
   border_col = "white",
   legend_label = "range")

## End(Not run)

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