ggplot2 0.9.3 released!

52 views
Skip to first unread message

Winston Chang

unread,
Dec 6, 2012, 4:11:45 PM12/6/12
to ggplot2, ggplot2-dev
Hi everyone -

We're pleased to announce the release of ggplot2 0.9.3! ggplot2 uses the scales and gtable packages, and there are also new versions of these packages: scales 0.2.3 and gtable 0.1.2. The source and binary versions should be available on the CRAN mirrors by now. To get the latest version of ggplot2 and all its dependencies, start a clean R session and run `install.packages("ggplot2", dep = T)`.

Most of the changes in this version are bug fixes. Perhaps the most visible change is that ggplot will now print out warning messages when you use `stat="bin"` and also map a variable to y. For example, these are valid:
  
    ggplot(mtcars, aes(wt, mpg)) + geom_bar(stat = "identity")
    ggplot(mtcars, aes(cyl)) + geom_bar(stat = "bin")

But these will result in some warnings:

    ggplot(mtcars, aes(wt, mpg)) + geom_bar(stat = "bin")
    # The default stat for geom_bar is "bin", so this is the same as above:
    ggplot(mtcars, aes(wt, mpg)) + geom_bar()

The reason for this change is to make behavior more consistent -- `stat_bin` generates a y value, and so should not work when you also map a value to y.

For a full list of changes, please see: http://cran.r-project.org/web/packages/ggplot2/NEWS

Regards,

Winston & Hadley

Reply all
Reply to author
Forward
0 new messages