The mp_heatmap function generates a heat map.
mp_heatmap(
locality,
cve_edo,
geocoded_datasets,
status_caso,
week,
alpha,
zoom,
map_type,
static,
palette = NULL
)
is the locality locality target.
is a string of the state id.
is geocoded dataset.
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.
It is epidemiological week.
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.
map zoom; an integer from 3 (continent) to 21 (building), default value 10 (city).
character string providing google map theme. options available are "terrain", "satellite", "roadmap", and "hybrid"
is a logical valur, if static == TRUE the map is static, else (statis = FALSE) the maps is interactive.
is the palette for kde. example palette = viridis::turbo.
ggplot object