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. Graphics Devices and Laying Out Plots
Get Visualizing Data in R 4: Graphics Using the base, graphics, stats, and ggplot2 Packages 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.