Watermark ggplot with "DRAFT" or other text.
watermark(
plot,
label = "DRAFT",
size = 108,
color = "black",
alpha = 0.1,
angle = 45,
x = 0.5,
y = 0.5,
do = TRUE,
...
)
A ggplot object to be watermarked.
Text to use as watermark. Defaults to "DRAFT".
Text size in points. Defaults to 108.
Watermark color. Defaults to "black".
Watermark transparency. Defaults to 0.1.
Watermark angle. Defaults to 45°.
x position of label. Defaults to 0.5.
y position of label. Defaults to 0.5.
logical specifying whether to apply the watermark. Defaults to TRUE.
Arguments passed to cowplot::draw_label()
A ggplot2 object.
Watermark ggplot with "DRAFT" or other text.