The mp_heatmap_edo function generates a heatmap by state.

mp_heatmap_edo(cve_edo, geocoded_dataset, week, kernel, alpha, palette)

Arguments

cve_edo

is a string of the state id.

geocoded_dataset

is geocoded dataset.

week

It is epidemiological week.

kernel

It is kernel density for select the blocks.

alpha

is a numerical parameter that controls the transparency of the heatmap. Values range from 0 to 1, where 0 is completely transparent and 1 does not make the heat map transparent.

palette

is the palette for kde. example palette = viridis::turbo.

status_caso

It is a numerical value to select the Status of the case. There are three options, 1 for the probable cases database, 2 for the confirmed cases database, and 3 for the discarded cases database.

Value

ggplot object

Author

Felipe Antonio Dzul Manzanilla felipe.dzul.m@gmail.com

Examples

1+1
#> [1] 2