Is there a simple way to label boxplot outliers from within the boxplot command in ggplot2 (using ggpubr
)? I am seeking to identify outliers for each variable on frequency boxplots. Previous answers do NOT address this type of boxplot. My x variable is mhi
and my y variable is postest
. My boxplot code is:
...
par(mfrow = c(1, 2))
boxplot(covid$mhi,
main = "mhi",
sub = paste("Outlier rows: ", boxplot.stats(covid$mhi)$out))
boxplot(covid$postest,
main = "positive test rate",
sub = paste("Outlier rows: ", boxplot.stats(covid$postest)$out))
...
Thank you!