Skip to content

R for Journalists

Unlock the power of R

  • What Is R?
  • R for Rob
  • GitHub
  • Twitter
  • Etsy
  • Home
  • 2017

Year: 2017

My First Shiny App: See Where Your Team Ranks in the Football Pyramid

Posted on December 31, 2017January 22, 2020 By Rob
My First Shiny App: See Where Your Team Ranks in the Football Pyramid
See

Here is my first Shiny app! Shiny lets you create interactive visualisations in R. It’s a big step forward from the static visualisations we have done thus far. R has a fairly steep learning curve at the beginning. It took me several months and a DataCamp course before I began to know what I was … Read More “My First Shiny App: See Where Your Team Ranks in the Football Pyramid” »

How to Use googlesheets to Connect R to Google Sheets

Posted on December 12, 2017 By Rob
How to Use googlesheets to Connect R to Google Sheets
Learn

Often I use R to handle large datasets, analyse the data and filter out the data I don’t need. When all this is done, I usually use write.csv() to print my data off and reopen it in Google Sheets. My workflow would look something like this: full_data <- read.csv(“some_dataset.csv”) #R analysis ending up with relevant_data write.csv(relevant_data, … Read More “How to Use googlesheets to Connect R to Google Sheets” »

R for Absolute Beginners

Posted on December 11, 2017 By Rob
Learn

  On Tuesday I gave a workshop at the Data Journalism UK conference, run by Paul Bradshaw. This was the worked example for absolute beginners that we went through. If you’ve never looked at R before and want to run some R code, load up this page , copy the following in step by step … Read More “R for Absolute Beginners” »

Road accidents in November

Posted on November 26, 2017November 26, 2017 By Rob
Road accidents in November
Uncategorized

Recently the British Department for Transport published its latest STATS19 data for the year 2016. We’ve looked at this data before. To recap, each row of the STATS19 data is a traffic accident that caused injury or death, identified by a unique Accident Index. It’s an extremely detailed dataset containing fields such as the latitude … Read More “Road accidents in November” »

Vandalism Causing Train Delays

Posted on November 19, 2017 By Rob
Vandalism Causing Train Delays
See

Over the past two weeks I’ve been looking at Network Rail’s delays data. The data tells us how many delays there have been to trains thanks to all kinds of problems that affect the railways, from natural causes such as that seasonal favourite ‘leaves on the line‘ to human causes such as vandalism. There are … Read More “Vandalism Causing Train Delays” »

The Losses in the Final Year of WW1

Posted on November 11, 2017 By Rob
The Losses in the Final Year of WW1
See

Back in August 2014, around the 100th anniversary of the outbreak of the First World War, the Data Unit published our analysis of the Commonwealth War Graves Commission‘s records of fallen soldiers, airmen, sailors and other servicemen and women who gave their lives during the next four years. As the 100th anniversaries have come and … Read More “The Losses in the Final Year of WW1” »

Scraping in R: Access to mortgage petition

Posted on October 25, 2017 By Rob 1 Comment on Scraping in R: Access to mortgage petition
Scraping in R: Access to mortgage petition
See

Over the past few years a good source of data has been Parliament’s petitions website. Anyone can start petitions or sign them. MPs have to consider the ones that get to 100,000 signatures for debates. The most popular petitions often end up leading the news cycle, such as the petition arguing for a second EU … Read More “Scraping in R: Access to mortgage petition” »

Spring Budget 2017: Circle visualisation

Posted on October 1, 2017 By Rob
Spring Budget 2017: Circle visualisation
See

It’s time to branch out into a new area of data visualisation: proportion area plots. These plots use area to show proportion between different related values. A common type of proportional area plots are tree maps. We are going to be using the same principle but with circles. A common subject for area visualisation is … Read More “Spring Budget 2017: Circle visualisation” »

Comparing Donald Trump and Hillary Clinton’s Facebook pages during the US presidential election, 2016

Posted on September 10, 2017September 13, 2017 By Rob
Comparing Donald Trump and Hillary Clinton’s Facebook pages during the US presidential election, 2016
See

R has a lot of packages for users to analyse posts on social media. As an experiment in this field, I decided to start with the biggest one: Facebook. I decided to look at the Facebook activity of Donald Trump and Hillary Clinton during the 2016 presidential election in the United States. The winner may … Read More “Comparing Donald Trump and Hillary Clinton’s Facebook pages during the US presidential election, 2016” »

Calculating Distances in R: How Fast is Your Train?

Posted on August 26, 2017August 26, 2017 By Rob
Calculating Distances in R: How Fast is Your Train?
See

Earlier this month Marie Segger, Carlos Novoa and I had a major new project published about different rail speeds between cities around Britain. We compared the distances between train stations in Britain’s largest cities and found which areas were poorly-served by slow trains. Our project was picked up by a MP for Plymouth, a city … Read More “Calculating Distances in R: How Fast is Your Train?” »

Posts pagination

1 2 Next

Recent Posts

  • I’ve moved my blog over to Substack
  • How to plot a large rural area using Ordnance Survey data in R
  • Check the COVID-19 vaccination progress in your area
  • Let R tell you what to watch on Netflix
  • Sentiment analysis of Nineteen-Eighty-Four: how gloomy is George Orwell’s dystopian novel?

Archives

  • April 2022
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • February 2020
  • December 2019
  • November 2019
  • October 2019
  • April 2018
  • March 2018
  • January 2018
  • December 2017
  • November 2017
  • October 2017
  • September 2017
  • August 2017
  • July 2017
  • May 2017
  • April 2017
  • March 2017
  • February 2017
  • January 2017
  • December 2016
  • November 2016
  • October 2016
  • September 2016

Categories

  • Geospatial data
  • Landmark Atlas
  • Learn
  • See
  • Seen Elsewhere
  • Site
  • Uncategorized

Copyright © 2025 R for Journalists.

Theme: Oceanly by ScriptsTown

 

Loading Comments...