In this tutorial, we will learn examples of computing correlations among all the numerical variables in a dataframe and visualize the correlation in multiple ways. We will use Corrr package from tidymodels to compute the correlation and visualize the correlation. corrr is … [Read more...] about Visualizing Correlation with tidymodels’ corrr package
ggplot2 error: how to fix error in dataframe
In this post we will learn under what circumstances we will see a ggplot2 error that says something like "replacement has 9 rows, data has 8" in addition to other text that is not easily understood. We will also see an easy fix to such a difficult sounding error. Let us … [Read more...] about ggplot2 error: how to fix error in dataframe
Correlation Dot Plot with Error Bar
In this tutorial, we will learn how to compute correlation of one variable against multiple variables and make a plot showing the correlation values with error bars. This nice trick uses map() functions from purrr package to compute multiple correlations and uses broom's tidy() … [Read more...] about Correlation Dot Plot with Error Bar
How to Make Notched boxplots with ggplot2
In this tutorial, we will learn how to make notched boxplots using ggplot2 in R. Notched boxplot is a variant of boxplot that helps comparing boxplots from different groups in a plot. "Notch" refers to the narrowing of the box around the median of the boxplot. If we are … [Read more...] about How to Make Notched boxplots with ggplot2
How to make rain cloud plots with ggdist
In this tutorial, we will learn how to make raincloud plots with the R package ggdist. In an earlier post, we learned how to make rain cloud plots with half violinplot, kind of from scratch. However, ggdist, an R package "that provides a flexible set of ggplot2 geoms and stats … [Read more...] about How to make rain cloud plots with ggdist