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

9. The Geometry, Statistic, Annotation, and borders( ) Functions

Margot Tollefson1  
(1)
Stratford, IA, USA
 

The geometry, statistic, annotation, and borders() functions create the contents of a plot. The functions open new layers on the figure and plot new information. The geometry functions, which all begin with geom_, create most of the many types of plots that can be created with the ggplot2 package. The statistic functions, which all begin with stat_, both create and add to plots. The functions statistically reduce the data before plotting. The annotation functions, which are the function annotate() or start with annotation_, provide a simple ...

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.