Skip to content
R in 3 Months Starts March 13. Learn More →
R for the Rest of Us Logo

Blog

Learn to use the most powerful tool for working with data.
Even if you've never coded before.

Report Design in R: Small Tweaks that Make a Big Difference

January 30, 2025

In August 2024, I spoke at posit::conf about doing report design in R . As I say in the talk, I never thought I'd become known for making nicely designed PDFs , but it's one thing we at R for the Rest of Us have become known for in the R world. The talk, titled Report Design in R: Small Tweaks that Make a Big Difference, was a great chance for me to share some of the things we've learned about making good reports, focusing on consistency, avoiding defaults, and incorporating brand elements...

R Versus Python: Which One Should You Learn?

January 16, 2025

If there is one question I get asked more than any other, it's this: should I learn R or Python? Especially in recent years, many people have developed a vague sense that Python is replacing R (the rebranding of Posit from RStudio in order to serve multiple languages scared many longtime R users). But I think the discussion of whether R is declining is misguided. Because ultimately the question of R's decline is less relevant to the question of which language you should learn. More relevant...

Automate file management in R with the {fs} package

January 9, 2025

Imagine you’re working on a project, and you receive a folder filled with subfolders and files named in different styles: some in uppercase, some in lowercase, and with a mixture of spaces, dashes, and underscores. This disorganized chaos can make it hard to find anything, but the {fs} lets you quickly rename and organize everything to a consistent case and format. This guide will show you how to use {fs} to automate tedious tasks like creating, renaming, moving, and deleting files and...

Use geom_ribbon() to highlight the gap between two lines

December 19, 2024

I recently found this really nice graph in the New York Times and I thought it was really effective, particularly the fact that it shows two lines and only shows the spread over a specific period. So how can we replicate this in R, particularly the shading of the gap between existing mortgages and rates on new loans? In this guide, written with Joseph Barbier, I’ll walk you through the steps of creating a line chart with two lines, where the area between the lines is filled only for a...

What's New in R

A weekly roundup of new resources in the world of R.

What’s New in R: February 3, 2025

February 3, 2025

Welcome to this week’s edition of ​What’s New in R ​! This week, we’re featuring a comprehensive guide to ggplot2 theming, an artistic approach to map-making, and an advanced course on data visualization in R. Let’s dive in! Getting Started with theme() The theme() function in ggplot2 is a powerful tool for customizing your plots, but it can be overwhelming at first. In this detailed guide from Jack Kennedy of Jumping Rivers, you’ll learn how to modify various aspects of your ggplot2 themes,...

What’s New in R: January 27, 2025

January 27, 2025

Welcome to this week’s edition of ​What’s New in R ​! This week, we’re featuring a comprehensive YouTube series on R programming, a guide to exploratory data analysis, and a package for working with academic calendars. Let’s dive in! Cascadia R Conf 2024 Talk Recordings Cascadia R Conf took place last August. The videos were recorded and released not too long after. There are some great talks here (I was there so I know!). Read More → A Practical Guide to Exploratory Data Analysis in R Cosima...

What’s New in R: January 21, 2025

January 21, 2025

Welcome to this week’s edition of ​What’s New in R ​! This week, we’re featuring a guide to qualitative data analysis software, making 'comet plots', and a new package for elegant data manipulation. Let’s dive in! Qualitative software In this comprehensive guide, Nathan Jeffery provides a thoughtful comparison of different software options for qualitative data analysis, exploring both commercial solutions like NVivo and ATLAS.ti, as well as free open-source alternatives, some of which work in...

What’s New in R: January 13, 2025

January 13, 2025

Welcome to this week’s edition of ​What’s New in R ​! This week, we’re featuring a tutorial on recreating Apple Music Wrapped in R, a fun maze generation package, and a guide to using meta shortcode variables in Quarto. Let’s dive in! Create Your Own Apple Music Wrapped with R While Spotify users get their yearly Wrapped experience, Apple Music users are left wanting. Andrew Heiss shows us how to create our own “Wrapped” experience using R. He walks through the process of accessing Apple...

R in 2 Minutes

Short videos highlighting useful R packages and functions.

How to generate QR codes in R

January 23, 2025

Ever given a presentation and wanted an easy way for people to access your materials afterwards? I recently discovered a neat solution: adding QR codes to slides! In my recent posit::conf() talk, I used QR codes to help people quickly access my slides, GitHub repo, and website – no need for anyone to frantically type in long URLs. I've made a quick R in 2 Minutes video showing how to use the qrcode package in R to automatically generate these QR codes. Here's what I cover: Using the qr_code()...

Use the view() function to quickly look at your data in R

December 5, 2024

Ever want to take a quick look at your data? In my R in 2 Minutes video, I show how to use the view() function to quickly display data in a separate window. I explain why it's useful at the end of pipelines and how to combine it with functions like filter() . It’s a simple trick that can save time and prevent headaches when working with data in R.

Make all of your plots made in ggplot use consistent fonts

October 31, 2024

Have you ever struggled with keeping fonts consistent across all your data visualizations? It's a common headache, but I've got a solution that'll make your life easier! In my latest blog post, I dive into a couple of little tricks using ggplot2 that'll help you maintain font consistency without having to manually adjust each plot. Here's what I cover: Using the theme_set() function to apply a consistent theme across all your plots Leveraging update_geom_defaults() to set default font...

How to update all of your R packages

October 3, 2024

There are times when working in R that you'll want to update not just one package, but all packages you currently have installed. There are many ways to do this, but I recently saw a tip from Kurt Birson that was so good, I had to make a video to demonstrate it. In the latest R in 2 Minutes video, I show you how to update all of your R packages with just a few lines of code. Here's the code I used in the video:

Podcast

Conversations with users around the world about interesting things they are doing with R.

R for the Rest of Us Podcast Episode 22: Alex Gold

December 12, 2024

In this episode, I chat with Alex Gold, who leads solution engineering and support teams at Posit. We talk about his new book ‘ DevOps for Data Science’ , and explore why DevOps principles are crucial for data scientists, even if you aren't working in hardcore production environments. Alex shares insights on how to think about putting your data science projects into "production"—whether it's a report for colleagues or a full-scale deployment. We discuss practical tips like using {renv} to...

R for the Rest of Us Podcast Episode 21: Cédric Vidonne

November 29, 2024

In this episode, I talk with Cédric Vidonne, an Information Management Officer at the United Nations High Commissioner for Refugees (UNHCR) with over 15 years of experience in humanitarian data visualization. Cédric shares his journey from GIS and cartography to creating impactful infographics and embracing the R programming language. He discusses how R has revolutionized data efficiency within UNHCR, where it aids in producing faster, reproducible data products essential for crisis response....

R for the Rest of Us Podcast Episode 20: Christine Parker

November 14, 2024

In this episode, I talk with Christine Parker, the Senior GIS Analyst on the Community Broadband Networks team at the Institute for Local Self Reliance. Christine shares how she used R to clean, combine, and summarize data for a dashboard tracking enrollment in the Affordable Connectivity Program (ACP), a COVID-era initiative to help people access affordable internet. The dashboard gained wide attention. It was shared in advocacy circles, referenced in Congress, and discussed with the White...

R for the Rest of Us Podcast Episode 19: Crystal Lewis

October 10, 2024

In this episode, I chat with Crystal Lewis about data management and her book titled ‘ Data Management in Large-Scale Education Research ’. Crystal, a freelance research data management consultant, shares insights on good planning and systematic implementation of practices that are key to effective data management. She discusses the importance of automated data validation, and outlines a structured approach to data cleaning. Additionally, Crystal reflects on her experience writing an...