mort_year_edo_map: mortality maps by state

View source: R/mort_year_edo_map.R

mort_year_edo_mapR Documentation

mortality maps by state

Description

mortality maps by state

Usage

mort_year_edo_map(
  dataset,
  years,
  cve_edo,
  cat_group = NULL,
  cve_def = NULL,
  static_map,
  by_mun
)

Arguments

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.

Value

a ggplot or leaflet map.


fdzul/rhealthdiag documentation built on Jan. 29, 2024, 6:33 p.m.