Graphics Reference
In-Depth Information
If you use
geom_text()
, the text will be heavily overplotted on the same location, with one
copy per data point:
p
+
annotate(
"text"
, x
=
3
, y
=
48
, label
=
"Group 1"
, alpha
=
.1
)
+
# Normal
geom_text(x
=
4.5
, y
=
66
, label
=
"Group 2"
, alpha
=
.1
)
# Overplotted
In
Figure 7-3
, each text label is 90% transparent, making it clear which one is overplotted. The
overplotting can lead to output with aliased (jagged) edges when outputting to a bitmap.