Skip to contents

Geographic analysis

catchment()
Create and cache a catchment area map
createNeighbourNetwork()
create a neighbourhood network from touching regions in a shapefile, with additional capability to connect non touching areas where there may be bridges etc.
getContainedIn()
Generate a mapping table between 2 `sf` dataframes.
getIntersection()
Intersection of 2 shapes
interpolateByArea()
interpolate a variable from one set of shapes to another

Visualisations

mapTheme()
A map theme to remove extraneous clutter
plotLabelledMap()
Create a map, usually as a chloropleth, with selected areas labelled.
popoutArea()
Create a magnified pop-out panel of a map
preview()
Preview a map with POI using leaflet

Loading and saving

downloadGeojson()
Download a geojson url, standardise it and cache the result
downloadMap()
Download a map, unpack it, and rename columns.
getMap()
Gets maps for which the metadata is known.
listStandardMaps()
List the standard maps available to download
saveShapefile()
save a shapefile to disk in the current working directory
standardiseMap()
Standardise maps to consistent naming

Data Documentation

apiTrusts
NHS trust admissions data from the legacy COVID API from 2021
londonShape
An outline of the London NHSER region for use as a mask
mapsources
Locations of UK and international shapefiles relevant to COVID
surgecapacity
Hospital surge capacity in COVID
testdata
A list of regular lattice SF polygons used for testing purposes
uk2019adultpopulation
Mid year 2019 small area estimates for adult population of England, Wales, Scotland, and Northern Ireland
uk2019demographics()
UK small area single year of age population estimates from 2019
uk2019demographicsmap()
Small area demographics map
uk2019retiredpopulation
Mid year 2019 small area estimates for adult population of England, Wales, Scotland, and Northern Ireland
ukconnections
Locations of UK bridge or ferry route start and end points
ukcovidmap()
COVID reporting map

Others

cache_clear()
Clear data from the passthrough cache for complex or long running operations
createCatchment()
Create a catchment area map