We’re pleased to announce new versions of ggplot2 (0.9.3) and plyr (1.8). To get up and running with the new versions, start a clean R session without ggplot2 or plyr loaded, and run install.packages(c("ggplot2", "gtable", "scales", "plyr")). Read on to find out what’s new.
ggplot2 0.9.3#
Most of the changes version 0.9.3 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:
|
|
But this will result in some warnings:
|
|
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 the NEWS file .
plyr 1.8#
Version 1.8 has 28 improvements and bug fixes. Among the most prominent:
-
All parallel plyr functions gain a
.paroptsargument, a list of options that is passed ontoforeachwhich allows you to control parallel execution. -
progress_timeis a new progress bar contributed by Mike Lawrence estimates the amount of time remaining before a job is complete -
The summarise() function now calculates columns sequentially, so you can calculate new columns from other new columns, like this:
|
|
This behavior is similar to the mutate() function. Please be aware that this could change the behavior of existing code, if any columns of the output have the same name but different values as columns in the input. For example, this will result in different behavior in plyr 1.7 and 1.8:
|
|
In the old version, the y column would equal mtcars$disp * 10, and in the new version, it would equal mtcars$disp.
- There are a number of performance improvements:
a*plyuses more efficient indexing so should be more competitive withapply;d*ply,quickdf_dfandidata.frameall have performance tweaks which will help a few people out a lot, and a lot of people a little.
For a full list of changes, please see the NEWS file .

