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

8. Working with the ggplot( ) Function: The Theme and the Aesthetics

Margot Tollefson1  
(1)
Stratford, IA, USA
 

This chapter covers the functions that control the appearance of the plot background and that which is plotted – the theme functions and the aesthetic functions. The theme functions set parameters for the appearance for the background of the plot, but not for the contents of the plot. The aesthetic functions set the parameters for the appearance of the contents. In Section 8.1, the theme functions are described. In Section 8.2, the aesthetic functions are described.

8.1 The Theme Functions

The theme functions fall into three kinds. The first ...

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.