Labeling Outliers of Boxplots in R

The following is a reproducible solution that uses dplyr and the built-in mtcars dataset. Walking through the code: First, create a function, is_outlier that will return a boolean TRUE/FALSE if the value passed to it is an outlier. We then perform the “analysis/checking” and plot the data — first we group_by our variable (cyl in … Read more