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
Activity
clauswilke commentedon Nov 19, 2020
Closing this in favor of #4258.