2009 | OriginalPaper | Chapter
22. Graphics with ggplot2
(GPL)graphics
Activate our intelligent search to find suitable subject content or patents.
Select sections of text to find matching patents with Artificial Intelligence. powered by
Select sections of text to find additional relevant content using AI-assisted search. powered by
Excerpt
As we discussed in Chap. 20, theggplot2
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. …