{"action":"opened","issue":{"url":"https://api.github.com/repos/hadley/ggplot2/issues/1345","labels_url":"https://api.github.com/repos/hadley/ggplot2/issues/1345/labels{/name}","comments_url":"https://api.github.com/repos/hadley/ggplot2/issues/1345/comments","events_url":"https://api.github.com/repos/hadley/ggplot2/issues/1345/events","html_url":"https://github.com/hadley/ggplot2/issues/1345","id":107212380,"number":1345,"title":"Bug:  scale_x_datetime not working","user":{"login":"ignacio82","id":1833309,"avatar_url":"https://avatars.githubusercontent.com/u/1833309?v=3","gravatar_id":"","url":"https://api.github.com/users/ignacio82","html_url":"https://github.com/ignacio82","followers_url":"https://api.github.com/users/ignacio82/followers","following_url":"https://api.github.com/users/ignacio82/following{/other_user}","gists_url":"https://api.github.com/users/ignacio82/gists{/gist_id}","starred_url":"https://api.github.com/users/ignacio82/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ignacio82/subscriptions","organizations_url":"https://api.github.com/users/ignacio82/orgs","repos_url":"https://api.github.com/users/ignacio82/repos","events_url":"https://api.github.com/users/ignacio82/events{/privacy}","received_events_url":"https://api.github.com/users/ignacio82/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-18T14:23:17Z","updated_at":"2015-09-18T14:23:17Z","closed_at":null,"body":"You can reproduce with this:\r\n\r\n\t\tdf1 <- structure(\r\n\t\t  list(\r\n\t\t\tTimestamp = structure(\r\n\t\t\t  c(\r\n\t\t\t\t1441837436, 1441843661,\r\n\t\t\t\t1441885583, 1441966341, 1441985621, 1442048926, 1442321691, 1442329081,\r\n\t\t\t\t1442349761, 1442408140, 1442417679, 1442508871, 1442513339, 1442513395,\r\n\t\t\t\t1442514010, 1442525088, 1442553226, 1442562304\r\n\t\t\t  ), tzone = \"UTC\", class = c(\"POSIXct\",\r\n\t\t\t\t\t\t\t\t\t\t  \"POSIXt\")\r\n\t\t\t), number = 7:24\r\n\t\t  ), class = \"data.frame\", row.names = c(NA,-18L), .Names = c(\"Timestamp\", \"number\")\r\n\t\t)\r\n\r\n\t\tggplot(df1, aes(x = Timestamp, y = number)) +\r\n\t\t  geom_line(size=2) + geom_point(size=5) + scale_x_datetime(breaks = \"1 day\")\r\n\t\t  \r\n\t\t  \r\n\t\t  Error in strsplit(unitspec, \" \") : non-character argument\r\n\r\n\r\n[My question on stackoverflow](http://stackoverflow.com/questions/32653730/ggplot2-scale-x-date?noredirect=1#comment53155072_32653730)"}}