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
{{ message }}
Repository navigation
Compare method needed between Duration and numerics for plotting in ggplot2 #695
Plotting Duration objects in ggplot2 fails because there is no defined Compare method between numeric and Duration objects which is required by the underlying continuous scale calculations (reprex and discussion @ tidyverse/ggplot2#2414).
Is there a good reason why this method hasn't been implemented? I'm happy to submit a PR adding it if deemed appropriate.
FYI, for anybody who runs into this bug as of April 2020 this fix still hasn't been released even though the issue is closed. Hopefully this will save others from spending a lot of time scratching their heads.
Activity
vspinu commentedon Jul 19, 2018
No good reason. difftime works with numeric so should durations. Would appreciate a PR for this (with a news entry). Thanks!
Add Compare method for duration and numeric objects.
Add Compare method for duration and numeric objects.
mrucker commentedon Apr 3, 2020
FYI, for anybody who runs into this bug as of April 2020 this fix still hasn't been released even though the issue is closed. Hopefully this will save others from spending a lot of time scratching their heads.
(time/R-lubridate) Updated 1.7.4 to 1.7.10
(time/R-lubridate) Updated 1.7.4 to 1.7.10
(time/R-lubridate) Updated 1.7.4 to 1.7.10
(time/R-lubridate) Updated 1.7.4 to 1.7.10