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
)

Arguments

locality

is the locality locality target.

cve_edo

is a string of the state id.

geocoded_datasets

is geocoded dataset.

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.

week

It is epidemiological week.

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.

zoom

map zoom; an integer from 3 (continent) to 21 (building), default value 10 (city).

map_type

character string providing google map theme. options available are "terrain", "satellite", "roadmap", and "hybrid"

static

is a logical valur, if static == TRUE the map is static, else (statis = FALSE) the maps is interactive.

palette

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

Value

ggplot object

Author

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