Publications by Anthony B. Masters

Luxembourg-UK Confirmed Cases

20.02.2022

Purpose The purpose of this graph is to show confirmed SARS-CoV-2 case counts for Luxembourg and the United Kingdom. The statistics come from Our World in Data. Packages and Themes First, we download the packages we need: library(tidyverse) library(lubridate) library(scales) Next, we set the plotting theme: theme_clean <- theme_bw(base_family = ...

526 sym R (3453 sym/9 pcs) 1 img

ONS Weekly Deaths Baseline

09.03.2022

Purpose The purpose of this code is to show potential different baselines in weekly death registrations for England and Wales. For 2022, the Office for National Statistics updated that baseline, having used the 2015-2019 average for the past two years. Packages and Themes First, download the packages we need: library(tidyverse) library(curl) lib...

734 sym R (4848 sym/10 pcs) 1 img

LFS Employment Levels by Type

15.03.2022

Purpose The purpose of this code is to make two graphs showing levels and change of UK employment, by type. The estimates from the Office for National Statistics Labour Force Survey. The ONS published its report on 15th March 2022. Packages and Themes First, download the packages we need: library(tidyverse) library(curl) library(readxl) library(...

929 sym R (7025 sym/13 pcs) 2 img

NHS England Covid Hospital Beds (Non-Acute Trusts)

20.03.2022

Purpose The purpose of this code is to show statistics for Covid-19 patients in England. In acute trusts, this is split by primary diagnosis. Packages and Themes First, install the packages we need: library(tidyverse) library(curl) library(readxl) library(janitor) library(lubridate) library(scales) library(patchwork) library(sysfonts) library(sh...

955 sym R (9280 sym/21 pcs) 1 img

COVID Tracker ICU Patients

22.04.2022

Purpose The purpose of this code is to create graphs showing ICU patients in US states. The statistics come from the COVID Tracker Project. Packages and Themes First, install the packages we need: library(tidyverse) library(lubridate) library(scales) library(sysfonts) library(showtext) Next, set the plotting theme. font_add_google("Spline Sans")...

623 sym R (5195 sym/8 pcs) 2 img

Covid-19 Trends in Wales

16.04.2022

Purpose The purpose of this code is to show different coronavirus-related measures in Wales. The figures come from Public Health Wales (via the UKHSA R package) and the Office for National Statistics infection survey. Packages and Themes First, install the packages we need: library(tidyverse) library(curl) library(readxl) library(ukcovid19) libr...

911 sym R (7607 sym/12 pcs) 1 img

Notified Covid-19 deaths in Ireland

20.04.2022

Purpose The purpose of this code is to show notified Covid-19 deaths in Ireland. The graphs will show the reporting cycle and deaths by both reporting date and date of occurrence. The statistics come from the Health Protection Surveillance Centre Covid-19 Data Hub API. Packages and Themes First, install the packages we need: library(tidyverse) l...

914 sym R (6419 sym/12 pcs) 2 img

Survation-RH Most Important Issue Cartogram

02.05.2022

Purpose The purpose of this code is to make a cartogram of modelled most important issues by constituency. Analysts at Royal Holloway used Survation polling to model opinion in each constituency. Packages and Themes First, install the packages we need: library(tidyverse) library(readxl) library(googlesheets4) library(curl) library(sf) library(ja...

649 sym R (5411 sym/18 pcs) 1 img