Chapter 9

Graphics Formats

Chapter preview

This chapter describes how to produce graphical output in different formats. The output of graphics functions is typically drawn on screen initially, but this chapter describes how to save plots to files on disk. There is a discussion of the advantages and disadvantages of the various formats for different purposes. The same R code will sometimes produce slightly different output on different formats, so these differences are also described.

This part of the book is devoted to the core graphics engine in R, which is provided by the grDevices package. The information in this chapter and the next applies to almost all graphics functions and packages mentioned in this book.

The grDevices package is part ...

Get R Graphics, 2nd Edition 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.