Customizing everything using R: more specialist
Rosalind K. Humphreys, Graeme D. Ruxton · Oxford University Press eBooks · 2022
This chapter outlines walk-throughs of R code using specific data examples. The aim of this is to provide generic and editable code for a range of plotting and design features. The chapter showcases the R code using examples of a bar chart and a scatterplot as a base to reference its respective customization. Design components (frames, images, background images, arrows, symbols, and shapes) can be added to figures with relatively little effort. Moreover, high-quality figures with inset plots can be achieved by modifying plot space parameters in an effort to avoid misleading readers when using a non-zero y-axis. The chapter also considers tricks used how to annotate images or geographic maps in the R plotting space.