I'd like to annotate all y-values greater than a y-threshold using ggplot2.
When you plot(lm(y~x))
, using the base package, the second graph that pops up automatically is Residuals vs Fitted, the third is qqplot, and the fourth is Scale-location. Each of these automatically label your extreme Y values by listing their corresponding X value as an adjacent annotation. I'm looking for something like this.
What's the best way to achieve this base-default behavior using ggplot2?
Updated
scale_size_area()
in place ofscale_area()
You might be able to take something from this to suit your needs.