scale_datetime shifts x axis [duplicate]
This question already has answers here : Time series plot gets offset by 2 hours if scale_x_datetime is used (2 answers) Closed 3 years ago . I am trying to plot a time series that has an x axis of class "POSIXct" using ggplot2, which is working up to a point. When I try to manipulate the x axis breaks and labels using scale_x_datetime it generates a one month shift in the x axis. Can anyone explain this, and provide a solution? Example simplified code: start <- as.POSIXct("2014/07/01 00:00:00") end <- as.POSIXct("2014/10/01 23:30:00") interval <- as.difftime("00:30:00") df <- data.frame(t=seq