Skip to content
  • Twitter
  • Facebook
  • Instagram
  • Email
Storybench
  • About
    • Meet the Team
    • Newsletter
  • Articles
    • Behind the scenes
    • Insights
    • Research
    • Interviews
    • Longform
    • Roundups
    • For Educators
  • Tutorials
  • Projects
    • NICAR 2022
    • Reinventing TV
    • Data Journalism in R
    • Climate Journalism Lab
    • 2020 Election Tracker

Category: Data Journalism in R

How to calculate a rolling average in R

Rolling or moving averages are a way to reduce noise and smooth time series data. During the Covid-19 pandemic, rolling averages have been used by researchers and journalists around the […]

June 22, 2020June 22, 2020 Martin Frigaard Data Journalism in R, How to

Update: How to geocode a CSV of addresses in R

This post is an update from the previous post, “How to geocode a CSV of addresses in R”. We will be using the ggmap package again, and be sure to investigate the usage […]

June 13, 2020June 13, 2020 Martin Frigaard Data Journalism in R, How to, Insights

How to use hierarchical cluster analysis on time series data

Which cities have experienced similar patterns in violent crime rates over time? That kind of analysis, based on time series data, can be done using hierarchical cluster analysis, a statistical […]

December 13, 2019December 13, 2019 Aleszu Bajak Data Journalism in R, How to

Diagnosing the accuracy of your linear regression in R

In this post we’ll cover the assumptions of a linear regression model. There are a ton of books, blog posts, and lectures covering these topics in greater depth (and we’ll […]

November 27, 2019November 27, 2019 Martin Frigaard Data Journalism in R, How to

How to explore correlations in R

This post will cover how to measure the relationship between two numeric variables with the corrr package. We will look at how to assess a variable’s distribution using skewness, kurtosis, […]

October 3, 2019October 4, 2019 Martin Frigaard Data Journalism in R, How to

How to download YouTube data in R using “tuber” and “purrr”

Accessing YouTube’s metadata such as views, likes, dislikes and comments is simple in R thanks to thetuber package by Gaurav Sood. Sood wrote an excellent, easy-to-use package for accessing the […]

September 23, 2019September 23, 2019 Martin Frigaard Data Journalism in R, How to

How to build a GIF of satellite imagery in R

“The timelapse imagery of Chennai’s disappearing reservoirs is mind boggling,” Earther senior reporter Brian Kahn wrote on Twitter recently. Kahn had just published the piece “Why Chennai, India’s Sixth Biggest […]

July 2, 2019July 3, 2019 Aleszu Bajak Data Journalism in R, How to

Using R to explore the relationship between San Francisco MUNI citations and the weather

Anybody who rides San Francisco’s MUNI regularly has had their Clipper Card checked by a fare inspector. Anecdotally, it also seemed to me that my Clipper Card was being checked […]

May 30, 2019May 31, 2019 Nick Jones Data Journalism in R

Exploring Chicago rideshare data in R

Last month, the City of Chicago released detailed rideshare data from companies like Uber, Lyft and Via, making it the first city in the country to share anonymized data on […]

May 7, 2019May 30, 2019 Martin Frigaard and Peter Spangler Data Journalism in R

How to build a website with Blogdown in R

Want to build a website right in RStudio? blogdown is an R package that allows you to create websites from R markdown files using Hugo, an open-source static site generator […]

May 6, 2019August 3, 2019 Martin Frigaard Data Journalism in R, How to

How to build a bubble chart of individuals mentioned in the Mueller report

When the redacted Mueller report was released last week, journalists across the country scrambled to read through and analyze the document. Data scientists and information designers were hard at work, […]

April 25, 2019April 25, 2019 Aleszu Bajak Data Journalism in R, How to

How to access APIs in R

APIs, or application program interfaces, are a way for people to access data in a plain text format using multiple programming languages. Many websites, organizations and services offer APIs for […]

April 22, 2019August 3, 2019 Martin Frigaard Data Journalism in R, How to, Insights

How to model with gradient boosting machine in R

The tutorial is part 2 of our #tidytuesday post from last week, which explored bike rental data from Washington, D.C. Check it out here. The following tutorial will use a […]

April 9, 2019April 10, 2019 Peter Spangler Data Journalism in R, How to

Exploring bike rental behavior using R

Bikes have become one of the fastest growing modes of city travel which is why it’s no surprise that Lyft and Uber are getting into the two-wheeler game. Lyft’s recent […]

April 2, 2019April 10, 2019 Peter Spangler Data Journalism in R, How to

Pivoting data from columns to rows (and back!) in the tidyverse

TLDR: This tutorial was prompted by the recent changes to the tidyr package (see the tweet from Hadley Wickham below). Two functions for reshaping columns and rows (gather() and spread()) […]

March 27, 2019August 3, 2019 Martin Frigaard Data Journalism in R, How to

Posts navigation

Older posts
Join us

Want to write for Storybench and probe the frontiers of media innovation? Apply for one of our graduate programs at Northeastern University’s School of Journalism.

Rolling admissions, no GREs required and financial aid available. Email here.

Get the latest from Storybench

Keep up with tutorials, behind-the-scenes interviews and more.


Proudly powered by WordPress | Theme: NewsAnchor by aThemes.