Home »

Ggplot2

The meaning of «ggplot2»

ggplot2 is a data visualization package for the statistical programming language R. Created by Hadley Wickham in 2005, ggplot2 is an implementation of Leland Wilkinson's Grammar of Graphics—a general scheme for data visualization which breaks up graphs into semantic components such as scales and layers. ggplot2 can serve as a replacement for the base graphics in R and contains a number of defaults for web and print display of common scales. Since 2005, ggplot2 has grown in use to become one of the most popular R packages.[1][2] It is licensed under GNU GPL v2.[3]

On 2 March 2012, ggplot2 version 0.9.0 was released with numerous changes to internal organization, scale construction and layers.[4]

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 [of] this significant milestone, the next version of ggplot2 will be 1.0.0".[5] 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 [own] stats, geoms and positions, and provide them in other packages."[6]

On 5 July 2018, ggplot 3.0 was released. The major addition is support for tidy evaluation, making it play a little bit nicer with the Tidyverse, a collection of packages in which it is commonly grouped, despite the design of ggplot2 predating the widespread use of the magrittr pipe function in other Tidyverse 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.[7] This abstraction comes at a cost, with ggplot2 being slower than lattice graphics.[8]

One potential limitation of base R graphics is the "pen-and-paper model" utilized to populate the plotting device.[9] Graphical output from the interpreter is added directly to the plotting device or window rather than separately for each distinct element of a plot.[10] In this respect it is similar to the lattice package, though Wickham argues ggplot2 inherits a more formal model of graphics from Wilkinson.[11] As such, it allows for a high degree of modularity; the same underlying data can be transformed by many different scales or layers.[12][13]

Plots may be created via the convenience function qplot() where arguments and defaults are meant to be similar to base R's plot() function.[14][15] More complex plotting capacity is available via ggplot() which exposes the user to more explicit elements of the grammar.[16]

Choice of words

g-g-plot2_ _
g-g-plot2_ _
ggp-lot2_ _
ggpl-ot2_ _
ggplo-t2_ _
ggplot-2_ _
ggplot2:_ _ _ _
ggplot2_ _ _ _
ggplot2_ - _ _ _
ggplot2-_ _ _ _
ggplot2 _ _ _ _ _
ggplot2 _ - _ _ _ _
© 2015-2020, Wikiwordbook.info
Copying information without reference to the source is prohibited!
contact us mobile version