watermark_txt: Add a watermark text

Description Usage Arguments Value

View source: R/watermark.R

Description

Add a watermark text

Usage

1
watermark_txt(txt, x, y, location = "br", rot = 0, ...)

Arguments

txt

the text to display

x

the x location of the watermark (0-1 scale)

y

the y location of the watermark (0-1 scale)

location

one of tr (top right), tl (top left), bl (bottom left), br (bottom right), center (view center)

rot

the rotation of the text

...

arguments passed to grid::gpar() (e.g. alpha)

Value

a ggplot object


datarootsio/artyfarty documentation built on May 14, 2019, 9:42 a.m.