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
Later I found the way to solve the error. The problem is that the message induces to think that the error is due to scales function label_date and not due to scale_x_date. I am not sure of this being the place to post this issue or the scales github or other place.
Minimal example:
last_month<- Sys.time() -0:29df<-data.frame(
date=last_month,
price= runif(30)
)
base<- ggplot(df, aes(date, price)) +
geom_line()
base+ scale_x_datetime(labels= label_date("%D")) # it worksbase+ scale_x_date(labels= label_date("%D")) # it does not workError:Invalidinput:date_transworkswithobjectsofclassDateonly
Thank you!
The text was updated successfully, but these errors were encountered:
I was using
scale_x_date(labels=label_date("%d/%m/%Y"))
for a data of classPOSIXct
so I got the error:Later I found the way to solve the error. The problem is that the message induces to think that the error is due to
scales
functionlabel_date
and not due toscale_x_date
. I am not sure of this being the place to post this issue or thescales
github or other place.Minimal example:
Thank you!
The text was updated successfully, but these errors were encountered: