Skip to main content
Top

2009 | OriginalPaper | Chapter

22. Graphics with ggplot2 (GPL)graphics

Author : Robert A Muenchen

Published in: R for SAS and SPSS Users

Publisher: Springer New York

Activate our intelligent search to find suitable subject content or patents.

search-config
loading …

Excerpt

As we discussed in Chap. 20, the ggplot2 packageggplot2 package is an implementation of Wilkinson's Grammar of Graphics. SPSS implements these concepts in its Graphics Production Language (GPL). Chapter 21 focused on R's traditional graphics functions. Many plots were easy, but other plots seemed to be quite a bit of work compared to SAS or SPSS. In particular, adding things like legends and confidence intervals were rather complicated. The ggplot2 package makes those things easier as you will now see as we replicate many of the same graphs. Since ggplot2 has a shorter qplot qplot function (also called quickplot) and a more powerful ggplot ggplot function, we will use both so you can learn the difference. The built-in lattice package is also capable of doing these examples well. …

Dont have a licence yet? Then find out more about our products and how to get one now:

Springer Professional "Wirtschaft+Technik"

Online-Abonnement

Mit Springer Professional "Wirtschaft+Technik" erhalten Sie Zugriff auf:

  • über 102.000 Bücher
  • über 537 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Maschinenbau + Werkstoffe
  • Versicherung + Risiko

Jetzt Wissensvorsprung sichern!

Springer Professional "Technik"

Online-Abonnement

Mit Springer Professional "Technik" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 390 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Maschinenbau + Werkstoffe




 

Jetzt Wissensvorsprung sichern!

Springer Professional "Wirtschaft"

Online-Abonnement

Mit Springer Professional "Wirtschaft" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 340 Zeitschriften

aus folgenden Fachgebieten:

  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Versicherung + Risiko




Jetzt Wissensvorsprung sichern!

Footnotes
1
You could nest the plot within the print function but it would be messy and error-prone.
 
Metadata
Title
Graphics with ggplot2 (GPL) graphics graphics Grammar of Graphics
Author
Robert A Muenchen
Copyright Year
2009
Publisher
Springer New York
DOI
https://doi.org/10.1007/978-0-387-09418-2_22

Premium Partner