Chapter 3. Getting started with graphs

 

This chapter covers

  • Creating and saving graphs
  • Customizing symbols, lines, colors, and axes
  • Annotating with text and titles
  • Controlling a graph’s dimensions
  • Combining multiple graphs into one

On many occasions, I’ve presented clients with carefully crafted statistical results in the form of numbers and text, only to have their eyes glaze over while the chirping of crickets permeated the room. Yet those same clients had enthusiastic “Ah-ha!” moments when I presented the same information to them in the form of graphs. Often I can see patterns in data or detect anomalies in data values by looking at graphs—patterns or anomalies that I completely missed when conducting more formal statistical analyses.

Human beings are remarkably adept at discerning relationships from visual representations. A well-crafted graph can help you make meaningful comparisons among thousands of pieces of information, extracting patterns not easily found through other methods. This is one reason why advances in the field of statistical graphics have had such a major impact on data analysis. Data analysts need to look at their data, and this is one area where R shines.

3.1. Working with graphs

 
 
 
 

3.2. A simple example

 

3.3. Graphical parameters

 

3.4. Adding text, customized axes, and legends

 
 

3.5. Combining graphs

 
 

3.6. Summary

 
 
 
 
sitemap

Unable to load book!

The book could not be loaded.

(try again in a couple of minutes)

manning.com homepage
test yourself with a liveTest