Skip to content
ggplot2
EntityQ326489· pop 12· linked from 64 articles

Also known as ggplot()

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.

Key facts

Software.name
ggplot2
Software.title
ggplot2
Software.logo
Ggplot2 hex logo.svg
Software.author
Hadley Wickham, Winston Chang
Software.programming language
R
Software.license
MIT license

via Wikipedia infobox

Source code

ggplot2 is a system for declaratively creating graphics, based on The Grammar of Graphics. You provide the data, tell ggplot2 how to map variables to aesthetics, what graphical primitives to use, and it takes care of the details. It’s hard to succinctly describe how ggplot2 works because it embodies a deep philosophy of visualisation. However, in most cases you start with ggplot() , supply a dataset and aesthetic mapping (with aes() ). You then add on layers (like geom point() or geom histogram() ), scales (like scale colour brewer() ), faceting specifications (like facet wrap() ) and coordinate systems (like coord flip() ). If you are new to ggplot2 you are better off starting with a systematic introduction, rather than trying to learn from reading individual documentation pages. Currently, there are several good places to start: 5. If you’ve mastered the basics and want to learn more, read ggplot2: Elegant Graphics for Data Analysis. It describes the theoretical underpinnings of ggplot2 and shows you how all the pieces fit together. This book helps you understand the theory that underpins ggplot2, and will help you create new types of graphics specifically tailored to your needs. 6. For articles about announcements and deep-dives you can visit the tidyverse blog. 1. The Posit Community (formerly RStudio Community) is a friendly place to ask any questions about ggplot2.

Excerpt from the source-code README · 5,248 chars · not written by Vinony

Wikidata facts

Official website
ggplot2.tidyverse.org
Image
US2009FederalExpenditures.png
Show 5 more facts
source code repository URL
github.com/tidyverse/ggplot2
Commons category
Ggplot2
software version identifier
4.0.3
name
ggplot2
Sources (5)

via Wikidata · CC0

~4 min read

Article

7 sections
Contents
  • Updates
  • Comparison with base graphics and other packages
  • Impact
  • Related projects
  • References
  • Further reading
  • External links

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.

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

Available in 11 languages

via Wikidata sitelinks · CC0

Connections

Categories