Easy Summary Tables in R with gtsummary

The gtsummary package lets you produce summary statistics for your numeric and categorical variables, formatted into a neat table. You can include p-values for pairwise comparisons and also split your summary across the categories of one of your covariates. Subscribe…

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…

Raincloud Plots in R

The raincloud plot is a data visualization which is a combination of a density curve of the distribution, and box and whisker plot, and a histogram style dot plot. By showing the density curves these graphs provide the viewer with…

Beautiful Regression Assumption Plots in R

The performance package in R lets you produce regression assumptions tests and plots. In this video I use the performance package in R to produce a set of beautiful and useful plots to check the assumptions of a linear regression.…

Asking ChatGPT about data science careers

ChatGPT is a chatbot developed by OpenAI that utilizes the GPT-3 (Generative Pre-trained Transformer) language model to generate human-like responses in real-time conversations. It can be used in chat applications or on social media platforms to engage with users and…

Animating ggplots with gganimate

animated gapminder ggplot

The gganimate package lets you add animation to your ggplots in R. In this video I demonstrate how to recreate animated bubble plots like the site and how to save them as gif files that you can use in…

Play Classic Arcade Games in R with the Rcade Package

Boulderdash in R Studio

The Rcade package lets you play a range of classic video games including Pacman, BoulderDash, and Tetris in RStudio. Check out my video demo and then use the code below to play games yourself. Sign up for my mailing list:

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…