How To Adjust Legend Position in ggplot2?

ggplot2 legend on top of a plot

Legends are useful to add additional variables to a data visualization. By default, when we make a plot with legend using ggplot2, it places the legend on outside the plot on the right side. In this post, we will learn how to change or adjust the legend position in ggplot2. We will use ggplot2’s theme()… Continue reading How To Adjust Legend Position in ggplot2?

How to Show Mean on Boxplot using Seaborn in Python?

Customize Mean Mark in Boxplot: Seaborn & Matplotlib

Boxplots show five summary statistics, including median, derived from data to show distribution of numerical data corresponding categorical variables. Sometimes, you might want to highlight the mean values in addition to the five statistics of boxplot. In this post we will see how to show mean mark on boxplot using Seaborn in Python. We will… Continue reading How to Show Mean on Boxplot using Seaborn in Python?

How To Show Mean Value in Boxplots with ggplot2?

Customizing Mean mark to boxplot with ggplot2

Boxplots are a great way to visualize multiple distributions using summary statistics. Boxplot shows five summary statistics; the minimum, the maximum, the median, and the first and third quartiles of the data. Sometimes, you might want to add other statistical summary values on the boxplot. In this post, we will see how to show mean… Continue reading How To Show Mean Value in Boxplots with ggplot2?

How to Connect Data Points on Boxplot with Lines?

Connect Paired data points boxplot

Boxplots with data points are great way to visualize the summary information between distributions and also look at the actual data points. Sometimes, when making boxplot with paired data points, it is also useful to connect the paired data points with lines. Adding lines to points betweeb two groups/time points can immediately reveal the change… Continue reading How to Connect Data Points on Boxplot with Lines?

How to Annotate Bars in Grouped Barplot in Python?

Annotating Bars in Grouped Barplot Seaborn and Matplotlib

In this post we will learn examples of adding text, annotating bars in grouped barplot using matplotlib. We will first see how to make grouped barplots using Seaborn’s barplot() function and then use Matplotlib to add annotations to the grouped bars. The way to add annotation to grouped barplot is very similar to the way… Continue reading How to Annotate Bars in Grouped Barplot in Python?

Exit mobile version