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() function to clean up the correlation model to get the results… Continue reading Correlation Dot Plot with Error Bar

How to Make Notched boxplots with ggplot2

How to make notched boxplot in ggplot

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 interested in difference between medians of… Continue reading How to Make Notched boxplots with ggplot2

How to make rain cloud plots with ggdist

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 designed especially for visualizing distributions… Continue reading How to make rain cloud plots with ggdist

ggplot2 error: Cannot use `+.gg()` with a single argument.

In this post, we will learn how to fix one of the common ggplot2 error messages. While trying to make a ggplot2, we might get the following error. The error message here ” Did you accidentally put + on a new line?” is bit helpful as it hints what is the cause of the error.… Continue reading ggplot2 error: Cannot use `+.gg()` with a single argument.

How to Make Heatmap with Matplotlib in Python

Change Heatmap Color Palette in Matplotlib using cmap argument

In this post, we will learn how to make heatmap with Matplotlib in Python. In Matplotlib, we can make heatmap with the function imshow(). imshow() basically shows the input data as image. We will start making a simple heatmap with a one-liner using imshow() first. And then show couple of simple customizations by adding axis… Continue reading How to Make Heatmap with Matplotlib in Python

Exit mobile version