Tag R

Adding Themes to your ggplots in R

Themes are a convenient way change the appearance of ggplots that you have created in R. In the video and code below I provide examples from a variety packages, showing themes that range from professional and serious, like the Wall…

Tetrachoric Correlation

The tetrachoric correlation is a correlation measure for binary variables and is commonly used in psychometrics, particularly for Item Response Theory (IRT). As with other correlation measures, a tetrachoric correlation ranges between -1 and 1, and describes the association between…

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…

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…