Abstract
ggplot2 is an R package for producing statistical, or data, graphics, but it is unlike most other graphics packages because it has a deep underlying grammar. This grammar, based on the Grammar of Graphics (Wilkinson, 2005), is made up of a set of independent components that can be composed in many different ways. This makes ggplot2 very powerful because you are not limited to a set of pre-specified graphics, but you can create new graphics that are precisely tailored for your problem. This may sound overwhelming, but because there is a simple set of core principles and very few special cases, ggplot2 is also easy to learn (although it may take a little time to forget your preconceptions from other graphics tools).
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
Chambers J, William C, Beat K, Paul T (1983) Graphical methods for data analysis. Wadsworth, Belmont
Cleveland W (1993) Visualizing data. Hobart Press
Cook D, Deborah FS (2007) Interactive and dynamic graphics for data analysis: with examples using R and GGobi. Springer, New York
Lemon J (2006) Plotrix: a package in the red light district of R. R-News 6(4):8–12
Meyer D, Achim Z, Kurt H (2006) The strucplot framework: visualizing multi-way contingency tables with Vcd. J Stat Softw 17(3):1–48. http://www.jstatsoft.org/v17/i03/
Murrell P (1998) Investigations in graphical statistics. PhD Thesis, The University of Auckland
Robbins N (2013) Creating more effective graphs. Chart House, Wayne
Sarkar D (2008) Lattice: multivariate data visualization with R. Springer, New York
Tufte ER (1990) Envisioning information. Graphics Press, Cheshire
Tufte ER (1997) Visual explanations. Graphics Press, Cheshire
Tufte ER (2001) The visual display of quantitative information, 2nd edn. Graphics Press, Cheshire
Tukey JW (1977) Exploratory data analysis. Addison, Reading
Warnes GR, Bolker B, Bonebakker L, Gentleman R, Liaw WHA, Lumley T, Maechler M, Magnusson A, Moeller S, Schwartz M, Venables B (2015) gplots: various R programming tools for plotting data. R package version 2.17.0. https://CRAN.R-project.org/package=gplots
Wickham H (2010) A layered grammar of graphics. J Comput Graph Stat 19(1):3–28
Wickham H, Michael L, Duncan TL, Deborah FS (2008) An introduction to Rggobi. R-News 8(2):3–7. http://CRAN.R-project.org/doc/Rnews/Rnews_2008-2.pdf
Wilkinson L (2005) The grammar of graphics. Statistics and computing, 2nd edn. Springer, New York
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2016 the Author
About this chapter
Cite this chapter
Wickham, H. (2016). Introduction. In: ggplot2. Use R!. Springer, Cham. https://doi.org/10.1007/978-3-319-24277-4_1
Download citation
DOI: https://doi.org/10.1007/978-3-319-24277-4_1
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-24275-0
Online ISBN: 978-3-319-24277-4
eBook Packages: Mathematics and StatisticsMathematics and Statistics (R0)