Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  



























Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Updates  





2 Comparison with base graphics and other packages  





3 Related projects  





4 References  





5 Further reading  





6 External links  














ggplot2







Čeština
Français

Kiswahili

Slovenčina
Українська

 

Edit links
 









Article
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Cite this page
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 




In other projects  



Wikimedia Commons
 


















From Wikipedia, the free encyclopedia
 


ggplot2
Original author(s)Hadley Wickham, Winston Chang
Initial release10 June 2007; 17 years ago (2007-06-10)
Stable release

3.5.1[1] / 23 April 2024; 48 days ago (23 April 2024)

Repository
Written inR
LicenseMIT license
Websiteggplot2.tidyverse.org
ggplot2
ggplot2
Base graphics
Base graphics
ggplot2 and base graphics defaults for a simple scatterplot image

ggplot2 is an open-source 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.[2][3][4]

Updates[edit]

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

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".[6]

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."[7]

Comparison with base graphics and other packages[edit]

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.[8] This abstraction comes at a cost, with ggplot2 being slower than lattice graphics.[9]

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.[10]

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

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

Related projects[edit]

References[edit]

  1. ^ "Release 3.5.1". 23 April 2024. Retrieved 23 May 2024.
  • ^ Wickham, Hadley (July 2010). "ggplot2: Elegant Graphics for Data Analysis". Journal of Statistical Software. 35 (1).
  • ^ Wilkinson, Leland (June 2011). "ggplot2: Elegant Graphics for Data Analysis by WICKHAM, H". Biometrics. 67 (2): 678–679. doi:10.1111/j.1541-0420.2011.01616.x.
  • ^ "CRAN - Package ggplot2". 12 October 2023.
  • ^ ggplot2 Development Team. "Changes and Additions to ggplot2-0.9.0" (PDF). Archived from the original (PDF) on 26 January 2015. Retrieved 31 October 2017.{{cite web}}: CS1 maint: numeric names: authors list (link)
  • ^ Wickham, Hadley. "ggplot2 development". ggplot2 Google Group. Retrieved 26 February 2014.
  • ^ "ggplot 2.0.0". 21 December 2015. Archived from the original on 7 February 2021. Retrieved 21 June 2021.
  • ^ Smith, David. "Create beautiful statistical graphics with ggplot2". Revolutions. Revolution Analytics. Retrieved 11 July 2011.
  • ^ "ggplot2 Version of Figures in "Lattice: Multivariate Data Visualization with R" (Final Part)". 25 August 2009.
  • ^ Yau, Nathan (22 March 2016). "Comparing ggplot2 and R Base Graphics". FlowingData. Retrieved 17 April 2022.
  • ^ Wickham, Hadley (2009). ggplot2: Elegant Graphics for Data Analysis. Springer. p. 5. ISBN 978-0-387-98140-6.
  • ^ Murrell, Paul (August 2009). "R Graphics". Wiley Interdisciplinary Reviews: Computational Statistics. 1 (2): 216–220. doi:10.1002/wics.22. S2CID 37743308.
  • ^ Sarkar, Deepayan (2008). Lattice: multivariate data visualization with R. Springer. pp. xi. ISBN 978-0-387-75968-5.
  • ^ Teetor, Paul (2011). R Cookbook. O'Reilly. p. 223. ISBN 978-0-596-80915-7.
  • ^ Wickham, Hadley (March 2010). "A Layered Grammar of Graphics" (PDF). Journal of Computational and Graphical Statistics. 19 (1): 3–28. doi:10.1198/jcgs.2009.07098. S2CID 58971746.
  • ^ R Development Core Team (2011). R: A language and environment for statistical computing. Vienna, Austria: R Foundation for Statistical Computing. ISBN 978-3-900051-07-5.
  • ^ Ginestet, Cedric (January 2011). "ggplot2: Elegant Graphics for Data Analysis". Journal of the Royal Statistical Society, Series A. 174 (1): 245–246. doi:10.1111/j.1467-985X.2010.00676_9.x.
  • ^ Muenchen, Robert A.; Hilbe, Joseph M (2010). "Graphics with ggplot2". R for Stata Users. Statistics and Computing. Springer. pp. 385–452. doi:10.1007/978-1-4419-1318-0_16. ISBN 978-1-4419-1317-3.
  • ^ "yhat/ggpy: ggplot port for python". GitHub. yhat. Retrieved 1 February 2024.
  • ^ "plotnine". Retrieved 2 August 2023.
  • ^ "Plotly graphing library for ggplot2 in ggplot2". Plotly Graphing Libraries. Plotly. Retrieved 1 February 2024.
  • ^ "ggplot for Matlab". GitHub. Pierre Morel (@piermorel). Retrieved 11 December 2015.
  • ^ "Gadfly.jl". Gadfly.jl. Retrieved 11 September 2018.
  • ^ "Stephan Loyd/Chart-GGPlot-0.0001". MetaCPAN. Retrieved 30 March 2019.
  • ^ "JetBrains/lets-plot". GitHub. JetBrains. Retrieved 3 April 2021.
  • ^ "JetBrains/lets-plot-kotlin". GitHub. JetBrains. Retrieved 4 April 2021.
  • ^ "ggplotnim". GitHub. Vindaar. Retrieved 1 August 2023.
  • Further reading[edit]

    External links[edit]


    Retrieved from "https://en.wikipedia.org/w/index.php?title=Ggplot2&oldid=1225054471"

    Categories: 
    Cross-platform free software
    Free data visualization software
    Free plotting software
    Free R (programming language) software
    Hidden categories: 
    CS1 maint: numeric names: authors list
    Articles with short description
    Short description is different from Wikidata
    Use dmy dates from January 2021
    Official website different in Wikidata and Wikipedia
     



    This page was last edited on 22 May 2024, at 02:20 (UTC).

    Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Mobile view



    Wikimedia Foundation
    Powered by MediaWiki