Custom Boxplot in R with ggplot2
After struggling the past few days to design a custom boxplot to address data from skewed distributions, I have finally figured out an interesting way to accomplish the task with "annotations" in ggplot2! Basically, needed a method to modify the "fences" of the boxplot where standard Tukey (1.5*IQR) or other multiples of the IQR do not account for skewness. Take a look below for necessary R code to construct fully customized boxplots! The following examples use the right skewed data set, 'rivers' in the R "datasets" package. Run the code in the R console to generate the custom boxplots. The standard Tukey boxplot and the modified fences boxplot by Kimber are displayed above.