While making plots with legend, like scatterplot, Seaborn has a nice feature that finds a suitable place for legend and puts it automatically inside the plot. This greatly helps in utilizing plotting area efficiently. However, sometimes you might want the legend outside the plot. … [Read more...] about How To Place Legend Outside the Plot with Seaborn in Python?
How To Place Legend Inside the Plot with ggplot2?
By default, when we make a plot with legend using ggplot2, it places the legend outside of the plot on the right side. Sometimes one might want to place the legend inside the plot. One of the advantages of placing it inside is that we may gain additional space for the plot. In … [Read more...] about How To Place Legend Inside the Plot with ggplot2?
How To Make Scatter Plots with Seaborn scatterplot in Python?
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 … [Read more...] about 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 … [Read more...] about 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 … [Read more...] about How To Connect Paired Points with Lines in Scatterplot in ggplot2?