Updated October 4, 2018
Previously, I introduced the ezplot package and showed how to use it to make high quality bar charts. Today, I’m going to show you how to make boxplots using ezplot. Once again, it’s super simple.
Load ezplot
Make sure you first install ezplot by running the command devtools::install_github("gmlang/ezplot")
.
Draw boxplots.
The ezplot package comes with a films dataset obtained from IMBD.com. Let’s
draw a boxplot of budget
vs. year_cat
.
We see the y-axis tick labels are in scientific notations, which makes it difficult to look at. We can use the dollar scale instead.
Notice that all boxes are squashed down, indicating budget is heavily right-skewed. To remedy this, we can use the log10 scale on the y-axis.
Please drop a comment below if you have questions.