© Margot Tollefson 2021
M. TollefsonVisualizing Data in R 4https://doi.org/10.1007/978-1-4842-6831-5_6

6. Graphics Devices and Laying Out Plots

Margot Tollefson1  
(1)
Stratford, IA, USA
 

In R, plots are plotted on graphics devices. Given that a graphics device is chosen, figures with multiple plots can be plotted on the device. In this chapter, we list the graphics devices and give some functions that work with the devices. Then, we give a few ways to set up a graphics device to plot multiple plots in one figure by using par(), layout(), or split.screen(). Any arguments of par() not covered in earlier chapters are covered, most of which are related to device regions, figure regions, plotting regions, margins, and multiple plot layouts.

6.1 Graphics ...

Get Visualizing Data in R 4: Graphics Using the base, graphics, stats, and ggplot2 Packages now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.