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 ...