You are previewing R in Action.

R in Action

Cover of R in Action by Robert Kabacoff Published by Manning Publications

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. Many times I was able to 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 ...

The best content for your career. Discover unlimited learning on demand for around $1/day.