View source: R/mort_year_edo_map.R
mort_year_edo_map | R Documentation |
mortality maps by state
mort_year_edo_map(
dataset,
years,
cve_edo,
cat_group = NULL,
cve_def = NULL,
static_map,
by_mun
)
dataset |
is the mortality dataset. |
years |
is the year or years analyzed. |
cve_edo |
is the state id. |
cat_group |
is the categorical age group. The options are "productiva", "infantil", "pediatric", "pos-productiva". The function provide the general mortality when cat_group is NULL. |
cve_def |
is the id of cause of mortality. |
static_map |
is logical valur (TRUE or FALSE), if static_map is TRUE the map is static (ggplot2), else the maps es interecative (leafletmap) |
by_mun |
is a logical value (TRUE or FALSE). If TRUE the level is municipality, else localities. |
a ggplot or leaflet map.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.