Publications by Albert Rapp

Creating interactive tables with reactable

17.08.2024

The R programming language has a rich ecosystem of packages that are fantastic for creating beautiful production-grade tables from within R. Today, I’m showing you that one package that makes it really easy (mostly) to create interactive tables. Namely, I’m going to show you {reactable}. 🥳 If you want to see a video version of this blog post...

5089 sym R (9863 sym/13 pcs)

Text Styling With ggplot2

20.07.2024

In today’s blog post, we are figuring out how to fully control the text styling of the texts that we put into our ggplots. This means that we will learn how to dynamically adjust the text color depending on the background color, and how to use the extensive styling capabilities that the brand-new {marquee} package gives you. Here, you will find...

1521 sym R (5704 sym/10 pcs) 20 img

Quick dataViz techniques for nicer line charts with ggplot

06.07.2024

Line charts are one of the most fundamental chart type out there. That’s why there’s a lot of tips for line charts out there. Today, I’m going to walk you through a couple of techniques that you can use to make your line chart nicer. Here, I’ll provide you with all the code chunks. All explanations can be found in my corresponding YT video:...

1162 sym R (8157 sym/12 pcs) 20 img

The 6 Most Fundamental Functions for Data Cleaning with R

15.06.2024

In this blog post I’m going to show you the six most fundamental functions for your data cleaning journey. And as always, you can watch the video version of this blog post on YouTube: Getting started All of these functions come from the tidyverse. So this is why we are going to load that package. library(tidyverse) And of course, we’re going...

9638 sym R (17720 sym/22 pcs)

Why you shouldn’t use boxplots

08.06.2024

Box plots are a very common tool in data visualization to show how your data is distributed. But they have a crucial flaw. Let’s find out what that flaw is. And if you’re interested in the video version of this blog post, you can find it here: The flaw of box plots Imagine that you have a numeric variable, like the weight of penguins. library...

3846 sym R (9742 sym/17 pcs) 30 img

RStudio Shortcuts and Settings

01.06.2024

RStudio is the premier way to write R code. It is very user-friendly as it’s super easy to set up. But it also has a lot of pretty advanced features. In today’s blog post I’ll give you a list of my favorite RStudio tricks and shortcuts. If you want to see detailed explanations, you can check out my video here: RStudio Theme Setting Use a da...

2961 sym

Three Ways to Include Images in Your ggplots

18.05.2024

library(tidyverse) library(giscoR) library(ggiraph) germany_districts <- gisco_get_nuts( year = "2021", nuts_level = 3, epsg = 3035, country = 'Germany' ) |> as_tibble() |> janitor::clean_names() germany_states <- gisco_get_nuts( year = "2021", nuts_level = 1, epsg = 3035, country = 'Germany' ) |> as_tibble() |> jani...

442 sym R (2745 sym/3 pcs)

How to collect dataviz from Twitter into your note-taking system

13.04.2022

Intro It is mid-April and the #30daychartchallenge is well on its way. One glace at the hashtag’s Twitter feed suffices to realize that there are great contributions. That’s a perfect opportunity to collect data viz examples for future inspirations. Ideally, I can scroll through Twitter and with a few clicks incorporate these contributions st...

16346 sym R (16463 sym/42 pcs) 2 img 20 tbl

6 Lessons that I learned from teaching R to non-programmers

14.04.2022

Last week, I gave a short workshop teaching R to Economics students without prior programming experience. On Twitter, I shared six lessons that I wish I had learnt before. This blog post is a more detailed account of my experience. Additionally, I incorporated many excellent suggestions from others on Twitter into this blog post. Do less The firs...

13382 sym R (1796 sym/16 pcs) 6 img 8 tbl

Storytelling in ggplot using rounded rectangles

03.05.2022

A standard ggplot output can rarely convey a powerful message. For effective data visualization you need to customize your plot. A couple of weeks ago, I showed you how. In this blog post, I will rebuild another great data viz from scratch. If you have read my original blog post, then you won’t have to learn many new tricks. Most of the techniq...

11477 sym R (16373 sym/58 pcs) 42 img 29 tbl