Scatter plots are great way to visualize two quantitative variables and their relationships. Often we can add additional variables on the scatter plot by using color, shape and size of the data points. With Seaborn in Python, we can make scatter plots in multiple ways, like lmplot(), regplot(), and scatterplot() functions. In this tutorial, we… Continue reading How To Make Scatter Plots with Seaborn scatterplot in Python?
How To Add Labels to Grouped Barplot with Bars Side-By-Side in R?
In this post we will learn how to add labels to bars on barplot that is stacked side-by-side. We will start with making side-by-side grouped barplot and work our way through adding annotation on top of each bar of the stacked barplot. Adding annotation to grouped barplot with side-by-side bars is similar to annotating bars… Continue reading How To Add Labels to Grouped Barplot with Bars Side-By-Side in R?
How To Connect Paired Points with Lines in Scatterplot in ggplot2?
Scatter plots are a great way to visualize the trend between two quantitative variables. Sometimes, you may have paired quantitative variables and would like to see the how the pairs are related. For example you may have two quantitative variables corresponding to two different time points and would like to connect the paired data points… Continue reading How To Connect Paired Points with Lines in Scatterplot in ggplot2?
How To Adjust Legend Position in ggplot2?
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?
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?