Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upCompare method needed between Duration and numerics for plotting in ggplot2 #695
Comments
|
No good reason. difftime works with numeric so should durations. Would appreciate a PR for this (with a news entry). Thanks! |
|
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. |
Plotting Duration objects in
ggplot2fails because there is no definedComparemethod 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.