Updates
On 2 March 2012, ggplot2 version 0.9.0 was released with numerous changes to internal organization, scale construction and layers. On 25 February 2014, Hadley Wickham formally announced that "ggplot2 is shifting to maintenance mode. This means that we are no longer adding new features, but we will continue to fix major bugs, and consider new features submitted as pull requests. In recognition fthis significant milestone, the next version of ggplot2 will be 1.0.0". On 21 December 2015, ggplot 2.0.0 was released. In the announcement, it was stated that "ggplot2 now has an official extension mechanism. This means that others can now easily create their wnstats, geoms and positions, and provide them in other packages."Comparison with base graphics and other packages
In contrast to base R graphics, ggplot2 allows the user to add, remove or alter components in a plot at a high level of abstraction. This abstraction comes at a cost, with ggplot2 being slower than lattice graphics. Creating a different plot for various subsets of the data requires for loops and manual management in base R graphics, whereas ggplot2 simplifies that process with a collection of "facet" functions to choose from. One potential limitation of base R graphics is the "pen-and-paper model" utilized to populate the plotting device. Graphical output from the interpreter is added directly to the plotting device or window rather than separately for each distinct element of a plot. In this respect it is similar to the lattice package, though Wickham argues ggplot2 inherits a more formal model of graphics from Wilkinson. As such, it allows for a high degree of modularity; the same underlying data can be transformed by many different scales or layers. Plots may be created via the convenience functionqplot()
where arguments and defaults are meant to be similar to base R's plot()
function. More complex plotting capacity is available via ggplot()
which exposes the user to more explicit elements of the grammar.
Related projects
* ggplot for Python * Plotly - Interactive, online ggplot2 graphs * gramm, a plotting class for MATLAB inspired by ggplot2 * gadfly, a system for plotting and visualization written in Julia, based largely on ggplot2 * Chart::GGPlot - ggplot2 port inReferences
Further reading
* * *External links
* * {{Statistical software Cross-platform free software Free data visualization software Free plotting software Free R (programming language) software