You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was adding other annotations to a plot, and wanted to add reference lines. I was in the mindset of annotate()ing thigs, so I tried to use it with "hline" and "vline", but discovered that nothing happened. For example:
Thanks @smouksassi, I didn't think to look that far back. If this is indeed expected behaviour, perhaps a documentation patch would be in order? I could prepare something.
And/or, indeed, a warning if "abline", "hline" or "vline" are passed to annotate() as the geom, with instructions to use the corresponding geom directly.
I was adding other annotations to a plot, and wanted to add reference lines. I was in the mindset of
annotate()
ing thigs, so I tried to use it with"hline"
and"vline"
, but discovered that nothing happened. For example:What I expected:
I realize the “solution” here is to use the geoms directly with fixed values:
But
annotate()
not working seems like an unexpected inconsistency.The text was updated successfully, but these errors were encountered: