We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Identity function does not position annotations where expected when x = 0. It does when x = -Inf
Not sure if this is a ggplot thing?
library(tidyverse) library(palmerpenguins) #> #> Attaching package: 'palmerpenguins' #> The following objects are masked from 'package:datasets': #> #> penguins, penguins_raw p <- penguins |> ggplot() + geom_bar(aes(x = species), ) + theme_classic() p + ggplot2::annotate( "segment", x = I(0), xend = I(1), y = c(50, 100), yend = c(50, 100), colour = "red" ) + coord_cartesian(clip = "off")
p + ggplot2::annotate( "segment", x = I(-Inf), xend = I(1), y = c(50, 100), yend = c(50, 100), colour = "red" ) + coord_cartesian(clip = "off")
Created on 2025-06-05 with reprex v2.1.1
The text was updated successfully, but these errors were encountered:
Just noticed works correctly with DEV ggplot2 :)
Sorry, something went wrong.
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
Identity function does not position annotations where expected when x = 0. It does when x = -Inf
Not sure if this is a ggplot thing?
Created on 2025-06-05 with reprex v2.1.1
The text was updated successfully, but these errors were encountered: