Skip to content
New issue

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

ggannotate fails when x is datetime #50

Open
matiasandina opened this issue Aug 7, 2023 · 0 comments
Open

ggannotate fails when x is datetime #50

matiasandina opened this issue Aug 7, 2023 · 0 comments

Comments

@matiasandina
Copy link

matiasandina commented Aug 7, 2023

The error I get is "Error: Invalid input: time_trans works with objects of class POSIXct only"

I did get the proper code though (lubridate::as_datetime() added by me to make it work)

  geom_curve(data = data.frame(x = lubridate::as_datetime(1691077324.05326),
                               y = 222.017858130503, 
    xend = lubridate::as_datetime(1691071613.9407),
    yend = 22.6778110317712), 
    mapping = aes(x = x, y = y, xend = xend, yend = yend), 
    arrow = arrow(30L, unit(0.1, "inches"), "last", "closed"), inherit.aes = FALSE)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant