Ggplot2: Difference between revisions

Content deleted Content added
Added vector plot
Add Impact section
Line 57:
 
Plots may be created via the convenience function <code>qplot()</code> where arguments and defaults are meant to be similar to base R's <code>plot()</code> function.<ref>{{cite book|title=R: A language and environment for statistical computing|year=2011|publisher=R Foundation for Statistical Computing|___location=Vienna, Austria|isbn=978-3-900051-07-5|url=http://www.R-project.org/|author=R Development Core Team}}</ref><ref>{{cite journal|last=Ginestet|first=Cedric|title=ggplot2: Elegant Graphics for Data Analysis |journal=Journal of the Royal Statistical Society, Series A |date=January 2011 |volume=174 |issue=1 |pages=245–246 |doi=10.1111/j.1467-985X.2010.00676_9.x}}</ref> More complex plotting capacity is available via <code>ggplot()</code> which exposes the user to more explicit elements of the grammar.<ref>{{cite book|last1=Muenchen|first1=Robert A.|last2=Hilbe|first2=Joseph M |title=R for Stata Users |publisher=Springer |isbn=978-1-4419-1317-3 |doi=10.1007/978-1-4419-1318-0_16 |chapter=Graphics with ggplot2|series=Statistics and Computing|year=2010|pages=385–452}}</ref>
 
== Impact ==
After ten years of being developed, ggplot2 has continued to make an impact on the data visualization community: with over 10 million downloads, 400,000 downloads in a given month, and data scientists from the US government to journalists at the [[The New York Times|New York Times]] use ggplot2 to analyze and present data.<ref>{{Cite web |last=Kopf |first=Dan |date=2017-06-18 |title=All hail ggplot2—The code powering all those excellent charts is 10 years old |url=https://qz.com/1007328/all-hail-ggplot2-the-code-powering-all-those-excellent-charts-is-10-years-old |access-date=2025-05-13 |website=Quartz |language=en}}</ref> Wickham posits the success of ggplot2 comes from the increased popularity of the R language and the relative ease of making aesthetically appealing graphics. Along with more serious uses of ggplot2, Wickham also supports the more unusual use cases, like exploring factors for winning in the reality TV show [[RuPaul's Drag Race]].
 
==Related projects==