Map NHS Hospital aggregated admissions. By default this maps the latest data provided.

map_admissions(admissions, shapefile, date, scale_fill)

Arguments

admissions

A data.frame of admissions data as produced by get_dadmissions. Must contain the following variables: geo_code, date, and admissions

shapefile

A shapefile defaults to england_utla_shape if not supplied.

date

A date variable (or vector) indicating when to plot data for. If set to NULL then no date filter is applied

scale_fill

A ggplot2 scale_fill used to define the fill colours used in the map. The default is: scale_fill_viridis_c(option = "viridis", direction = -1, na.value = "grey80").

Value

A map of Covid-19 admissions in England