In this tutorial, we will learn how to add p-value to each facet plot made with facet_wrap() function in ggplot2. We will use scatter plot example, where we have multiple scatter plots using facet_wrap and we have done linear regression analysis to find the statisitical … [Read more...] about How to add P-value to each facet in ggplot2
How to make Annotated heatmap with Seaborn in Python
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