What this book covers
Chapter 1, Base Graphics in R – One Step at a Time, introduces the basic components of a graph (headings, symbols, lines, colors, axes, labels, legends, and so on) and outlines how to use the R syntax to create these components.
Chapter 2, Advanced Functions in Base Graphics, covers the techniques required to create professional-level graphs in R, including bar charts, histograms, boxplots, pie charts, and dotcharts. It also covers regression lines, smoothers, and error bars.
Chapter 3, Mastering the qplot Function, explains how to use qplot to create a wide range of basic but attractive graphs.
Chapter 4, Creating Graphs with ggplot, introduces you to ggplot, which is an even more powerful graphics tool than qplot. We focus on the main techniques to modify your plotting background, titles, grid lines, legends, axes, labels, and colors. It also covers the essential methods to create plots using ggplot. You will learn how to create all the graph types that were covered in Chapter 1, Base Graphics in R – One Step at a Time, and Chapter 2, Advanced Functions in Base Graphics, but this time using the many special and attractive features of ggplot.