How To Make Boxplots with Text as Points in R using ggplot2?

Boxplot with jittered text labels as points in R

Boxplots with overlayed data points is a great way visualize multiple distributions. One of the biggest benefits of adding data points over the boxplot is that we can actually see the underlying data instead of just the summary stat level data visualization. Sometimes using text labels instead of data points can be helpful as it… Continue reading How To Make Boxplots with Text as Points in R using ggplot2?

How to Add Vertical Lines By a Variable in Multiple Density Plots with ggplot2

Add Vertical Lines Colored by Variable In Multiple Density Plot

Adding vertical line or lines at mean or median of density plot can help us understand the trend in the data. When you make multiple density plots adding vertical mean/median line for each group in the same color as the density plot is of great help. In this post, we will see an example of… Continue reading How to Add Vertical Lines By a Variable in Multiple Density Plots with ggplot2

How to Make Horizontal Boxplot with ggplot2 version 3.3.0?

ggplot2 v3.3.0: Horizontal Boxplots

Making a boxplot or barplot horizontally can be useful in a variety of scenarios. In ggplot2, till now the only way to make a plot horizontal is to use flip the axis using coord_flip(). With ggplot2 version 3.3.0, we can easily flip axis and make horizontal boxplot or horizontal barplot without using coord_flip(). Let us… Continue reading How to Make Horizontal Boxplot with ggplot2 version 3.3.0?

How to Color Boxplots with R Colorbrewer Color Palettes?

Coloring Boxplots with RColorBrewer: scale_fill_brewer()

Adding right colors to the plots greatly help convey the main message of the plot. Adding colors manually can be a bit challenging. Color palettes available from RColorBrewer package make it easy add right set of colors to plots made with ggplo2. In this tutorial, we will see examples of adding colors to Boxplots using… Continue reading How to Color Boxplots with R Colorbrewer Color Palettes?

Exit mobile version