format argument to scale_x_datetime removed from v0.9.0? #561

Closed
dlebauer opened this Issue May 22, 2012 · 2 comments

Comments

Projects
None yet
2 participants
@dlebauer

I noticed that the following code works with 0.8.9 but not with 0.9.0 (same sessionInfo as #559)

library(lubridate) 
library(ggplot2) 

foo <- ymd_hms("2012-02-06 15:47:00")
qplot(hour(foo)) + scale_x_datetime(format = "%S:00")

in 0.9.0 I get the error:

Error in continuous_scale(aesthetics, "datetime", identity, breaks = breaks,  : 
  unused argument(s) (format = "%S:00")
@dlebauer

This comment has been minimized.

Show comment Hide comment
@dlebauer

dlebauer May 23, 2012

in version 0.9.0, the format argument has been replaced by labels.

qplot(hour(foo)) + scale_x_datetime(labels = "%S:00")

works.

So, at most this is a suggestion to maintain backward compatibility. Feel free to close

in version 0.9.0, the format argument has been replaced by labels.

qplot(hour(foo)) + scale_x_datetime(labels = "%S:00")

works.

So, at most this is a suggestion to maintain backward compatibility. Feel free to close

@hadley

This comment has been minimized.

Show comment Hide comment
@hadley

hadley May 25, 2012

Member

Yeah, this was a change to make scale_datetime more similar to other scales.

Member

hadley commented May 25, 2012

Yeah, this was a change to make scale_datetime more similar to other scales.

@hadley hadley closed this May 25, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment