In this post, we will learn how to make annotated heatmap using data visualization package Seaborn in Python. We will use Seaborn's heatmap() function to make a heatmap first. Next we will show how to annotate the heatmap with simple text. And finally we will show how to add … [Read more...] about How to make Annotated heatmap with Seaborn in Python
How to Annotate Positive and Negative Values in a barplot
In this post, we will learn how to properly annotate a bars barplot, where there are both positive and negative values/bars in ggplot2. In ggplot2, we can use gem_text() with label option to annotate text or bar heights on a barplot easily. However, when we have a barplot that … [Read more...] about How to Annotate Positive and Negative Values in a barplot
How to Annotate a plot with P-value in ggplot2
In this tutorial, we will learn how to add statistical significance to a plot made with ggplot2. Let us we have scatterplot to help understand the relation between two numerical variables and we have done linear regression analysis to find the statisitical significance of the … [Read more...] about How to Annotate a plot with P-value in ggplot2
How to order facet variable in grouped boxplot by mean difference between groups in ggplot2
In this tutorial, we will learn how to order facet variable in a grouped boxplot by mean difference between groups in each facet plot with ggplot2. We will use Palmer penguin dataset to make a grouped boxplot using facet_wrap() in ggplot2. Our data looks like … [Read more...] about How to order facet variable in grouped boxplot by mean difference between groups in ggplot2
How to Deal with Outliers in boxplot with ggplot2
In this post, we will learn of two ways to deal with outlier data points while making a boxplot. By default, ggplot2 boxplot() identifies the outliers and disply them as black dots at the boxplot extremes. One of the options to deal with outlier is to ignore them. With ggplot2, … [Read more...] about How to Deal with Outliers in boxplot with ggplot2