Articles by Albert Rapp

WebDev4R: Flexbox

March 20, 2024 | Albert Rapp

There are two major systems to align things in CSS. These are flexbox and grid layout. Both of them are really useful to know to have any chance to make nice websites or apps. And today we’re going to focus on flexbox. And as always, if you want...
[Read more...]

WebDev4R: CSS Selection

March 13, 2024 | Albert Rapp

A lot of our favorite R tools generate HTML & CSS code for us. For example, any {gt} table is really just a bunch of HTML & CSS code. Don’t believe me? Here’s a basic {gt} table. Use the web inspector to see the HTML & CSS code behind it. library(...
[Read more...]

WebDev4R: Meet the Web Inspector

February 28, 2024 | Albert Rapp

The web inspector of your web browser lets you take a look at the source code of any website that you want. And getting comfortable with it is a great way to learn how to write HTML and CSS. More importantly, whenever you write your own HTML &am...
[Read more...]

WebDev4R: Introducing WebDev for R Series

February 27, 2024 | Albert Rapp

I’m super excited to announce that I’m starting a new blog + YouTube series called “WebDev for R”. This series is going to be a collection of blog posts that will help you learn how to use HTML, CSS, and JavaScript as part of your R journeys. Yo... [Read more...]

How to create diverging bar plots

February 24, 2024 | Albert Rapp

In today’s blog post, we are going to create an elaborate diverging bar chart. Namely, we are going to create this plot here: As you can see in the caption of this image, this plot was originally created by the PEW Research Center. Here, we use...
[Read more...]

WebDev4R: Creating a weather app

February 17, 2024 | Albert Rapp

In this blog post, I’m using the {htmltools} package to build what looks like a weather app. This will combine a lot of tools we will learn in the WebDev4R series. If you’re reading this, before the series has reached the lesson on {htmltools} a... [Read more...]

Dot plots as an alternative to bar charts

February 10, 2024 | Albert Rapp

I recently saw a cool LinkedIn post where it was highlighted that a dot plot is a pretty neat alternative to bar charts. While bar charts makes it easy to compare categories, dot plots put more emphasis on individual data points. I thought the i...
[Read more...]

Correlation heat maps with {ggplot2}

February 3, 2024 | Albert Rapp

Correlation heat maps are pretty easy to create with {ggplot}. But there are some things you have to watch out for. For example, ggplot doesn’t use the correct colors for such a chart by default. In this blog post, I show you how to create a cor...
[Read more...]

Interactive filters in tables with reactable

January 20, 2024 | Albert Rapp

The reactable package is a powerful tool that simplifies the creation of interactive HTML tables. While it’s quite straightforward to use, it lacks built-in support for dynamic interactions based on the content of a dataset. To show you what I mean have a look at this table. It shows ... [Read more...]

6 Common ggplot2 Mistakes

January 13, 2024 | Albert Rapp

library(tidyverse) In this blog post, I want to walk you through six common mistakes that beginners make with ggplot. They range from simple programming mistakes to mistakes in applying data visualization principles. So, with that said, let’s ...
[Read more...]

5 Powerful ggplot2 Extensions

January 6, 2024 | Albert Rapp

In this blog post, I’ll show you how to make ggplot2 even better. To do so, we are going to look at five must-have extensions that can level up your dataviz game. This blog post is also available as a video on my YouTube channel. You can check i...
[Read more...]

Storytelling in ggplot using rounded rectangles

May 3, 2022 | Albert Rapp

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, ...
[Read more...]

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

April 14, 2022 | Albert Rapp

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 ...
[Read more...]
1 2 3

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)