Skip to content

Instantly share code, notes, and snippets.

@felixgolcher
felixgolcher / impf.R
Created November 24, 2021 11:29
inzidenz über impfquote
library(tidyverse)
library(ggrepel)
library(readxl)
download.file("https://www.rki.de/DE/Content/InfAZ/N/Neuartiges_Coronavirus/Daten/Impfquotenmonitoring.xlsx?__blob=publicationFile",
"Impfquotenmonitoring.xlsx")
# https://de.statista.com/statistik/daten/studie/1178874/umfrage/bundeslaender-mit-den-meisten-coronainfektionen-in-der-letzten-woche/
# no automatic download.
read_excel("statistic_id1178874_bundeslaender-mit-den-meisten-coronainfektionen-in-der-letzten-woche.xlsx",
sheet = 2, skip = 4, col_names = F) %>%
set_names(c("Bundesland", "Inzidenz")) %>%
@felixgolcher
felixgolcher / reload.sh
Created June 24, 2020 13:12
reload.sh file.html titlebit; reloads file.html in a browser window when changed. Tested only on xfce/manjaro.
#!/bin/bash -x
# Wed 24 Jun 2020 02:39:13 PM CEST
# felix.golcher@hu-berlin.de
# heavily based on
# https://unix.stackexchange.com/questions/37258/refresh-reload-active-browser-tab-from-command-line
# L Nix <lornix@lornix.com>
@felixgolcher
felixgolcher / corona_wp.R
Last active March 26, 2020 08:48
[absolutely obsolete] Code and data for simple plots about the corona virus outbreak at the beginning of 2020
library(tidyverse)
library(ggplot2)
# using csv now
# library(readODS)
# height of figs
mh <- 3
# width
mw <- mh*1.5