ropensci/plotly — pull request #151 by mkcor (2014-12-30 21:36:18+00:00)
Title: Marianne datetime binning

When date-time *durations* are expressed with a numerical value, plotly's unit is the millisecond (ms).
This is different in R, where the `POSIXt` class uses seconds, and the `Date` class uses days.

This PR offers the corresponding conversions for the width (size) of (`x`) bins in histograms.

See these successful `ggplotly` conversions when dates are of class `POSIXt`:
https://plot.ly/~marianne2/336/deaths-by-police-across-time-by-region/,
when dates are of class `Date`:
https://plot.ly/~marianne2/358/deaths-by-police-across-time-by-region/

/cc @chriddyp @alexcjohnson @jackparmer