ggplot2 themes offer a great ways to change the look of a plot easily. ggplot2's theme() function lets you control all aspects of the themes in general. However, ggplot2 has multiple built in themes that are ready to use. In tutorial, we will see examples of 6 ggplot2 themes that … [Read more...] about 6 ggplot2 themes to make your plot look better
R
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 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 … [Read more...] about How To Adjust Legend Position in ggplot2?
How To Show Mean Value in Boxplots 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 … [Read more...] about How To Show Mean Value in Boxplots with ggplot2?
How to Connect Data Points on Boxplot with Lines?
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 … [Read more...] about How to Connect Data Points on Boxplot with Lines?