This is code accompanying my talk about Data Storytelling at the German Online Conference Data Science im Unternehmen. The data has been collected from the Technology Subreddit. The CSV-file can be found here: https://datanizing.com/data-science-day/transport-short.7z Or the data can be accessed via this SQLite-databank: https://datanizing.com/data-science-day/technology-transport-short.7z Libraries library(readr) library(tidyverse) library(tidytext) library(lubridate) library(reshape2) Setting up custom ggplot color scheme Colorblind-friendly according to https://shirinsplayground.netlify.app/2020/10/goodbadugly/ cbp2 <- c("#000000", "#E69F00", "#56B4E9", "#009E73", "#999999", "#0072B2", "#D55E00", "#CC79A7") ggplot <- function(.

Continue reading

Data Storytelling code

This is code accompanying an article about Data Storytelling in the German IT magazine iX 1/2022. The figures in this article were created as follows. Note: Because the data is partly from a German source, the data description is in German as well. iX 1/2022 library(readr) library(tidyverse) library(stringr) library(lubridate) Set colorblind-friendly palette cbp2 <- c("#000000", "#E69F00", "#56B4E9", "#009E73", "#999999", "#0072B2", "#D55E00", "#CC79A7") ggplot <- function(...) ggplot2::ggplot(...) + scale_color_manual(values = cbp2) + scale_fill_manual(values = cbp2) + # note: needs to be overridden when using continuous color scales theme_bw() library(plotrix) sliceValues <- rep(10, 8) # each slice value=10 for proportionate slices ( p <- pie3D(sliceValues, explode=0, theta = 1.

Continue reading

Author's picture

Dr. Shirin Elsinghorst

Biologist turned Bioinformatician turned Data Scientist

Data Scientist

Münster, Germany