[R] ggplot2

Joshua Wiley jwiley.psych at gmail.com
Tue Mar 6 00:52:29 CET 2012


Hi Ryan,

It is rather presumptuous to assume that old code not working is a bug.

Checkout: https://github.com/djmurphy420/ggplot2-transition-guide

for a transition guide detailing changes in the new ggplot2 0.9.

Sincerely,

Josh

On Mon, Mar 5, 2012 at 1:24 PM, Ryan Garner
<ryan.steven.garner at gmail.com> wrote:
> 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.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



-- 
Joshua Wiley
Ph.D. Student, Health Psychology
Programmer Analyst II, Statistical Consulting Group
University of California, Los Angeles
https://joshuawiley.com/



More information about the R-help mailing list