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
As hms has officially become part of the tidyverse, could we get a scale_x_time (and similar) so it can be plotted directly instead of hacking it through POSIXct?
For example, right now
ggplot(data.frame(time = hms::as.hms('11:11:11'), y = 1), aes(time, y)) + geom_point()
warns
Don't know how to automatically pick scale for object of type hms/difftime. Defaulting to continuous.
but plots
chron::times similarly defaults to continuous, albeit with different numbers (due to the way the data is stored, I assume). While both can be hacked through as datetimes or relabeled, the advent of hms seems to indicate the time has come for a proper set of scale_*_time functions.
The text was updated successfully, but these errors were encountered:
As hms has officially become part of the tidyverse, could we get a
scale_x_time
(and similar) so it can be plotted directly instead of hacking it through POSIXct?For example, right now
warns
but plots
chron::times
similarly defaults to continuous, albeit with different numbers (due to the way the data is stored, I assume). While both can be hacked through as datetimes or relabeled, the advent of hms seems to indicate the time has come for a proper set ofscale_*_time
functions.The text was updated successfully, but these errors were encountered: