Skip to contents

Add a Watermark Annotation Layer to a ggplot2 Object

Usage

watermark(
  watermark,
  fontsize = 120,
  colour = "grey90",
  alpha = 0.1,
  fontface = "bold",
  angle = 22
)

Arguments

watermark

String to be added as watermark

fontsize

Font size

colour

Font colour

alpha

Alpha (transparency; lower number = more transparent)

fontface

Font face ("bold" by default)

angle

Angle of the watermark

Author

Matt Cowgill and Will Mackey

Examples


library(ggplot2)
# First, start with a plot:
p <- ggplot(mtcars, aes(x = wt, y = mpg)) + geom_point() + theme_aagi()

# Then add a watermark:

p + watermark("DRAFT")