9 Visualizing data: Plotting

This chapter covers

  • Preparing data for visualizations
  • Plotting data the tidy way: ggplot2
  • Saving graphics to files

Visualizations of data help both you and people you share your results with gain insight into relationships inherent in the data. When you have many data points (even just a handful), a plot (a graph, a graphic, or some other sort of image) can convey a great deal of information that a table can’t. That’s not to say plots are always the best way to convey information, but when they are, you need tools to generate them easily and effectively with R.

9.1 Data preparation

By now you’ve taken raw data, performed some operations on it (cleaned, sliced, and diced), and are ready to plot it to see what ...

Get Beyond Spreadsheets with R now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.