hadley/ggplot2 — Issue #245: Incorrrect scaling with time series data in "develop" branch.
Author: leonbaum
Created: 2011-10-10 00:55:47+00:00
State: open

I was using the "develop" branch because of its many bug fixes, but noticed that for time series data, the scaling does not match the data. It appears that the lower limit is always set to the date equivalent of zero, e.g. Sys.time() - as.numeric(Sys.time()).

A minimal example of the issue is
> ggplot(data = data.frame(x = Sys.time() + 1:10, y = rnorm(10)), mapping = aes(x = x , y = y)) + geom_point()

In the "develop" branch all the points are placed on a vertical line, whereas in the "master" branch they are spaced out over the entire plot.