How to Search and Filter Text in R

In the video and code below I demonstrate how to use R to search and filter text. For examples I use the Friends package which contains the transcripts of all of the episodes of the Friends TV show. Subscribe below…

How to Plot a Color Coded Map of USA in R

In this video I use the ggplot2 package and the built in USArrests data in R to create a color coded plot of the United States of America. I explain what the various bits of code do and highlight some…

Moving columns in R with relocate

The relocate() function is a simple but very useful function from the Tidyverse. It allows you to move the position with columns within a data frame. I use this most often where I have been delivered data that is not…

Analyzing Cricinfo Cricket Data with R

In the following video I demonstrate how to use the cricketdata package for R to download different types of cricket data from espncricinfo and produce some visualizations.

Arranging plots in R with the patchwork package

The patchwork package in R allows you to customise the arrangement of your graphs. In the following video I work through a number of examples. The code and examples from the video are also provided below for you.

Looping Likert Summary Tables in RMarkdown or Quarto

Survey analysis, particularly in psychology, can involve the use of many Likert scale items. The following code and YouTube video show you how to use for loops in R to produce a set of summary tables, with frequencies and percentages…

Getting Started with Quarto

Quarto (quarto.org) is a new open source publishing system. It works with Python, R, Julia, and Observable. Imagine RMarkdown on steroids. In the following video I look at how to get started with Quarto in RStudio, and explore the tutorials…