I have a boxplot with an extreme outlier. I'd prefer not to change the scale or remove the outlier, rather just change the range and add an indicator arrow or the likes with the value.
Is it possible to do something similar to answer 2 from this SO question in ggplot?
E.g. in the plot below the range of y would go to ~ 2.5 and an arrow with a value would indicate the presence of an outlier in a.
Thank you, this should do the trick! On a side note, where does arrow = arrow() "come from"? The ellipsis for annotate() says arguments are passed to layer(), but there's no mention of arrow in layer()? How does it work?