An Introduction to R Graphics
Paul Murrell · 2018
The following code provides a simple example of how to produce a plot using R (see Figure 1.1). > plot(pressure) > text(150, 600, "Pressure (mm Hg)\ versus\ Temperature (Celsius)") The expression plot(pressure) produces a scatterplot of pressure versus temperature, including axes, labels, and a bounding rectangle. The call to the text() function adds the label at the data location (150, 600) within the plot.