[R] ggplot2

Ryan Garner ryan.steven.garner at gmail.com
Mon Mar 5 22:24:33 CET 2012


I just updated to R 2.14 with ggplot2 0.9 and am finding bugs.

> ggplot2      "GPL-2"              "2.14.0"

This example is taken from pg 101 in the ggplot book.

> plot <- qplot(date, psavert, data = economics, geom = "line") +
> ylab("Personal savings rate") + geom_hline(xintercept = 0, colour =
> "grey50")'
> plot + scale_x_date(major = "10 years")
Error in continuous_scale(aesthetics, "date", identity, breaks = breaks,  :
  unused argument(s) (major = "10 years")> plot + scale_x_date(limits =
as.Date(c("2004-01-01", "2005-01-01")),format = "%Y-%m-%d")
> plot + scale_x_date(limits = as.Date(c("2004-01-01", "2005-01-01")),format
> = "%Y-%m-%d")
Error in continuous_scale(aesthetics, "date", identity, breaks = breaks,  :
  unused argument(s) (format = "%Y-%m-%d")

--
View this message in context: http://r.789695.n4.nabble.com/ggplot2-tp4447745p4447745.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list