Skip to content

Instantly share code, notes, and snippets.

@jze
Last active August 10, 2021 05:37
Show Gist options
  • Save jze/4a8e0f0f84828b3ebe78ceff9af6f6ad to your computer and use it in GitHub Desktop.
Save jze/4a8e0f0f84828b3ebe78ceff9af6f6ad to your computer and use it in GitHub Desktop.
OZG-Umsetzung in Schleswig-Holstein
library('readxl')
library('dplyr')
# Download https://opendata.schleswig-holstein.de/collection/ozg-umsetzung/aktuell.xlsx
d <- read_excel('/tmp/aktuell.xlsx')
d$JiraStatus[is.na(d$JiraStatus)] <- ''
alle <- mutate( d, Ampelfarbe = ifelse( JiraStatus=='Fertig', 'grün',
ifelse( (JiraStatus=='Backlog' | JiraStatus=='') , 'rot',
'gelb')) )
priorisiert <- alle[which( grepl('^zu digitalisieren', alle$SH_DigitalisierungPrioritätAufzaehlung)),]
status <- aggregate(priorisiert$Schluessel, by=list(priorisiert$Ampelfarbe), FUN=length)
status
barplot( status$x, horiz=TRUE, xlab="Anzahl Leistungen", ylab="Status", col=c('#00cc00','#eeee00','#D4004B'))
# Wie sieht es in den einzelnen Ministerien aus?
aggregate(Schluessel ~ Ampelfarbe + SH_FachverantwortungBehoerdeEbene1, data=priorisiert, FUN=length )
# Wie sieht es bei den Themenfeldern aus?
aggregate(Schluessel ~ Ampelfarbe + Katalog_OZGThemenfeld, data=priorisiert, FUN=length )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment