This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ############# | |
| #### ACKNOWLEDGMENTS | |
| ############# | |
| # Thanks for the original idea and the helpful code to @grssnbchr and @benjazehr: https://timogrossenbacher.ch/2019/04/bivariate-maps-with-ggplot2-and-sf/ | |
| ############# | |
| #### LOAD PACKAGES | |
| ############# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| library(tidyverse) | |
| library(sf) | |
| library(msthemes) | |
| library(rayshader) | |
| library(wesanderson) | |
| # Download the map here: https://github.com/ginseng666/GeoJSON-TopoJSON-Austria/tree/master/2021 | |
| map <- st_read("bezirke_999_geo.json") %>% | |
| mutate(iso = as.numeric(iso), | |
| iso = ifelse(iso %in% 901:923, 900, iso)) %>% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| library(tidyverse) | |
| library(ggbump) | |
| library(msthemes) | |
| library(rnaturalearth) | |
| library(rnaturalearthdata) | |
| library(lubridate) | |
| library(sf) | |
| covid <- read_csv("owid-covid-data.csv") %>% filter(continent == "Europe") %>% | |
| group_by(iso_code) %>% drop_na(people_vaccinated_per_hundred) %>% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| library(tidyverse) | |
| library(lubridate) | |
| library(msthemes) | |
| library(patchwork) | |
| # Get Covid data by age here: https://www.data.gv.at/katalog/dataset/3765ed62-0f9d-49ad-83b0-1405ed833108 | |
| # And vaccination data here: https://www.ages.at/themen/krankheitserreger/coronavirus/ | |
| cov <- read_csv2("CovidFaelle_Altersgruppe.csv") %>% | |
| mutate(Time = as.Date(Time, "%d.%m.%Y")) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This code is adapted from original code by @cnicault https://github.com/cnicault/tidytuesday/tree/master/2021/2021-21-ask_a_manager | |
| library(tidyverse) | |
| library(readxl) | |
| library(scales) | |
| library(ggbump) | |
| library(glue) | |
| library(showtext) | |
| library(msthemes) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| library(tidyverse) | |
| library(lubridate) | |
| library(msthemes) | |
| library(ragg) | |
| library(showtext) | |
| # get data from https://www.oenb.at/isaweb/report.do?lang=DE&report=7.17 | |
| unemp <- vroom::vroom("unemployment.csv") | |
| font_add_google("Abel", "abel") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| library(tidyverse) | |
| library(sf) | |
| library(gganimate) | |
| library(transformr) | |
| library(lubridate) | |
| library(msthemes) # https://github.com/mschnetzer/msthemes | |
| # Import online map | |
| bezirke <- st_read("https://raw.githubusercontent.com/ginseng666/GeoJSON-TopoJSON-Austria/master/2017/simplified-99.9/bezirke_999_geo.json") %>% | |
| mutate(iso = as.numeric(iso)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| library(tidyverse) | |
| library(survey) | |
| library(msthemes) | |
| library(gganimate) | |
| library(Hmisc) | |
| # Load HFCS and Non-core data | |
| load("hfcs2017AT.rda") | |
| load("non-core-at.rda") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| library(tidyverse) | |
| library(lubridate) | |
| library(msthemes) | |
| library(gganimate) | |
| unemp <- read_csv("unemployment.csv") | |
| df <- unemp %>% filter(period == "month", indicator == "Unemployment registered, total, M-end NSA") %>% | |
| select(year,month,values) %>% | |
| mutate(values = values*1000) %>% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| library(tidyverse) | |
| library(eurostat) | |
| library(msthemes) | |
| library(patchwork) | |
| beds <- get_eurostat("hlth_rs_bds", filters = list(unit = "P_HTHAB", facility = "HBEDT", time = 2000:2017), time_format = "num") | |
| abs <- beds %>% filter(geo %in% c("AT","DE","FR","ES","IT","SE","UK"), time == 2017) %>% | |
| ggplot(aes(x = reorder(geo, values), y = values)) + | |
| geom_bar(stat = "identity", aes(fill=geo)) + |