R

A webR powered Shiny app for browsing TidyTuesday plots

Shinylive, GitHub Actions, and R - the magic combination to create an app that updates itself every week. This blog post gives a walk-through of scheduled data collection, building a Shiny app to display it, and deploying with Shinylive.

Answering some ‘Forecasting with GAMs in R’ questions

After running the ‘Forecasting with generalised additive models (GAMS) in R’ workshop with Forecasting for Social Good, there were a few questions that we didn’t get the chance to answer. This blog post aims to answer some of them.

Making Pretty PDFs with Typst (and Quarto)

With the latest 1.4 release of Quarto, it’s now possible to create PDF documents with Quarto using Typst. How does it compare to LaTeX, and is it actually easier to learn and use?

Four ways to streamline your R workflows

Finding ways to reduce manual tasks when programming, like copying and pasting files or code, can save you time and minimise the risk of errors. This blog post guides you through a few small changes to your R workflow to help reduce manual tasks and streamline your programming workflows in R.

Answering some {tidymodels} questions

After running the ‘Introduction to machine learning with {tidymodels}’ workshop as part of the R/Pharma 2023 Conference, there were a few questions that we didn’t get the chance to answer. This blog post aims to answer some of them.

Creating typewriter-styled maps in {ggplot2}

Inspired by RJ Andrews, I created a typewriter-styled map of Scotland using {ggplot2} in R. This blog post explains the process of gathering elevation data, selecting a suitable typewriter font, and coding up a map!

Creating template files with R

If you find yourself regularly copying and pasting content between files, you can use R to do it for you! For repetitive tasks you can’t fully automate, using template files is a great way to save time and this blog post will show you how to make them in R.

Adding social media icons to charts with {ggplot2}

Adding social media icons to your data visualisation is a great, concise way to put your name on your work, and make it easy for people to find your profile from your work. This blog post explains how to add social media icons to {ggplot2} charts.

Learning Julia with #TidyTuesday and Tidier.jl

Tidier.jl is a Julia implementation of the {tidyverse}, and after 10 weeks of data wrangling and plotting #TidyTuesday data in Julia, I wanted to share what I’ve learnt about Julia as an R user.

Introducing {ggflowchart}

Flowcharts can be a useful way to visualise complex processes, and the new R package {ggflowchart} makes them easy to create in R. This blog post shows you how.

Creating a cracked egg plot using {ggplot2} in R

Inspired by a Visual Capitalist chart, this blog post will show you how to utilise spatial data R packages in a slightly unusual way to create an infographic in the shape of a cracked egg in R.

Detecting heart murmurs from time series data in R

Time series analysis can uncover hidden structures in data collected over time. In this blog post, I’ll use {tsfeatures} to extract time series features and {tidymodels} to predict which sound recordings of heartbeats contain heart murmurs, using those time series features.

Scraping London Marathon data with {rvest}

{rvest} is an R package within the {tidyverse} which helps you scrape data from web pages. This blog post will showcase an example of scraping data from Wikipedia on London Marathon races and winners.

Making Pretty PDFs with Quarto

Adding custom styling to documents makes them look more professional. This blog post will take you through the process of making a Quarto extension to create a reusable custom template for good-looking PDFs.

What’s new in {PrettyCols} 1.0.1?

{PrettyCols} is an R package containing aesthetically pleasing colour palettes that are compatible with {ggplot2}. Find out about new features and palettes contained in the latest release!

Seeing double? Building the same app in Shiny for R and Shiny for Python

Back in July 2022 at rstudio::conf(2022), Posit (formerly RStudio) announced the release of Shiny for Python. I wanted to see how the two compared - so I built the same Shiny app twice! This blog post highlights a few of the differences, and things that were a little tricky switching to Shiny for Python.

Combining R and Python with {reticulate} and Quarto

Sometimes you might need to use R. Sometimes you might need to use Python. Sometimes you need to use both at the same time. This blog post shows you how to combine R and Python code using {reticulate} and output the results using Quarto.

Another Year of #TidyTuesday

After another 52 data visualisations created for #TidyTuesday, it’s time for the annual round-up! Read this blog post for some interesting R packages discovered, a few new I’ve tricks learnt, and the data visualisations I’d like to do again.

R packages for visualising spatial data

Throughout the #30DayChartChallenge I made most of my maps with R. This blog post details the R packages I find myself using most often when visualising spatial data.

How to make your own #RStats Wrapped!

Forget about Spotify Wrapped and make your own #RStats Wrapped instead! This blog post will show you how to find your most used functions and make a graphic with {ggplot2}!

30 Day Map Challenge 2022

The #30DayMapChallenge is a month-long mapping, cartography, and data visualization challenge aimed at the spatial community. Here are the things I’ve learnt from participating in the challenge for a second time.

Using functional analysis to model air pollution data in R

Let’s say you need to understand how your data changes within a day, and between different days. Functional analysis is one approach of doing just that so here’s how I applied functional analysis to some air pollution data using R!

Introducing {PrettyCols}

An introduction to {PrettyCols} - a new R package containing aesthetically pleasing colour palettes that are compatible with {ggplot2}.

Mapping a marathon with {rStrava}

This tutorial blog will walk through the process of getting data from Strava using {rStrava}, making a map of it, and animating the map with {gganimate}.

Creating flowcharts with {ggplot2}

Flowcharts can be a useful way to visualise complex processes. This tutorial blog will explain how to create one using {igraph} and {ggplot2}.

A Year of #TidyTuesday

One of my goals for 2021 was to participate in the #TidyTuesday challenge on a regular basis. This blog post reflects on the past year of data visualisations.

30 Day Map Challenge 2021

The #30DayMapChallenge is a daily mapping, cartography, and data visualization challenge aimed at the spatial community.