Code
# Load libraries
library(here)
library(tidyverse)
library(lubridate)
library(unibeCols)
# Load libraries
library(here)
library(tidyverse)
library(lubridate)
library(unibeCols)
The aim of this exercises is to visualize the increase of laboratory-confirmed cases of COVID-19 in Switzerland during autumn 2020.
We read and process the data of laboratory-confirmed cases of COVID-19 in Switzerland as reported by the Federal Office of Public Health.
# Read data
<- read_csv(here("data/raw/COVID19Cases_geoRegion.csv")) cases
# Process data
<- "CH"
region <- ymd("2020-09-01")
window_start <- ymd("2020-11-30")
window_end <- cases |>
cases filter(geoRegion == region & datum >= window_start & datum <= window_end) |>
select(datum, entries)
cases
Figure 1 shows the number of laboratory-confirmed cases of COVID-19 in Switzerland from 2020-09-01 to 2020-11-30.
ggplot(cases, aes(x = datum, y = entries)) +
geom_bar(stat = "identity", fill = unibeSaphireS()[1]) +
labs(x = "", y = "Laboratory-confirmed cases", ) +
theme_minimal()
The number of laboratory-confirmed cases of COVID-19 in Switzerland rapidly increased during October 2020 and subsequently declined.