Graphics Reference
In-Depth Information
p
+
annotate(
"text"
, x
=-
Inf, y
=
Inf, label
=
"Upper left"
, hjust
=-
.2
, vjust
=
2
)
+
annotate(
"text"
, x
=
mean(range(faithful$eruptions)), y
=-
Inf, vjust
=
-0.4
,
label
=
"Bottom middle"
)
Figure 7-4. Text positioned at the edge of the plotting area
See Also
See
Labeling Points in a Scatter Plot
for making a scatter plot with text.