Content deleted Content added
Aezarebski (talk | contribs) |
Citation bot (talk | contribs) Alter: title. Removed parameters. | Use this bot. Report bugs. | #UCB_CommandLine |
||
Line 56:
One potential limitation of base R graphics is the "pen-and-paper model" utilized to populate the plotting device.<ref>{{cite book|last=Wickham|first=Hadley|title=ggplot2: Elegant Graphics for Data Analysis |year=2009 |publisher=Springer |isbn=978-0-387-98140-6|pages=5}}</ref> Graphical output from the interpreter is added directly to the plotting device or window rather than separately for each distinct element of a plot.<ref>{{cite journal |last=Murrell |first=Paul |title=R Graphics|journal=Wiley Interdisciplinary Reviews: Computational Statistics|date=August 2009|volume=1|issue=2|pages=216–220|doi=10.1002/wics.22}}</ref> In this respect it is similar to the lattice package, though Wickham argues ggplot2 inherits a more formal model of graphics from Wilkinson.<ref>{{cite book|last=Sarkar|first=Deepayan|title=Lattice: multivariate data visualization with R|year=2008|publisher=Springer|isbn=978-0-387-75968-5|pages=xi}}</ref> As such, it allows for a high degree of modularity; the same underlying data can be transformed by many different scales or layers.<ref>{{cite book|last=Teetor|first=Paul|title=R Cookbook|year=2011|publisher=O'Reilly|isbn=978-0-596-80915-7|pages=223}}</ref><ref>{{cite journal|last=Wickham|first=Hadley|date=March 2010|title=A Layered Grammar of Graphics|url=http://vita.had.co.nz/papers/layered-grammar.pdf|journal=Journal of Computational and Graphical Statistics|volume=19|issue=1|pages=3–28|doi=10.1198/jcgs.2009.07098|s2cid=58971746}}</ref>
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.
==Related projects==
Line 66:
* Chart::GGPlot - ggplot2 port in [[Perl]]<ref>{{cite web|title= Stephan Loyd/Chart-GGPlot-0.0001|url=https://metacpan.org/release/Chart-GGPlot|access-date=30 March 2019}}</ref>
* The Lets-Plot for Python library includes a native backend and a Python API, which was mostly based on the ggplot2 package well-known to data scientists who use R.<ref>{{cite web |url=https://github.com/JetBrains/lets-plot |title=JetBrains/lets-plot |publisher=JetBrains |access-date=3 April 2021}}</ref>
* Lets-Plot is an open-source plotting library for statistical data. It is implemented using the Kotlin programming language and is built on the principles of layered graphics first described in the Leland Wilkinson work The Grammar of Graphics.<ref>{{cite web|title=JetBrains/lets-plot-kotlin|url=https://github.com/JetBrains/lets-plot-kotlin
* ggplotnim, plotting library using the [[Nim (programming language)|Nim]] programming language inspired by ggplot2.<ref>{{cite web |url=https://github.com/Vindaar/ggplotnim |title=ggplotnim |publisher=Vindaar |access-date=1 August 2023}}</ref>
|