Patchwork, the R package that lets you combine multiple figures made by ggplot2, got a big update late last year and it is on CRAN now. If you have not heard of Patchwork, it is an R package made by the awesome Thomas Lin Pedersen. Patchwork lets you combine separate plots made by ggplot to […]
ggplot2
9 Tips to Make Better Scatter Plots with ggplot2 in R
Scatter plot is one of the common data visualization method used to understand the relationship between two quantitative variables. When there is strong association between two variables you would easily see the relationship with scatterplot. However, when the relationship is subtle it may be tricky to see it. In this post we will see 9 […]
8 tips to make better barplots with ggplot2 in R
Barplots or barcharts are extremely handy visualization technique for a variety of situations. It is of great use when you have multiple of categories and quickly visualize the counts of each category. In this post, we will start with how to make simple barplots using ggplot2 in R. Then we will see many examples of […]
How To Change Legend Title in ggplot2?
In this post, we will see multiple examples of how to change the legend title in ggplot2. When you make a plot with ggplot2 and color/highlight data points by a variable in the input dataframe, ggplot2 uses the name of the variable present in the dataframe. However, sometimes you might want to change the legend […]
8 ggplot themes to make your plots look great
ggplot2 is awesome. It enables people to easily make high quality data visualization plots. However, people who spent a lot of time with ggplot2 have love/hate relationship with the default ggplot2 theme, where a plot is on a grey background. The default ggplot2 theme is called theme_grey() or theme_gray(). In addition to the default theme, […]