Skip to contents

Add the CORI watermark as a background to a ggplot2 object

Usage

geom_watermark(alpha = 0.2)

Arguments

alpha

Opacity for the watermark, defaults to 0.2

Examples

library(ggplot2)
library(dplyr)
#> 
#> Attaching package: ‘dplyr’
#> The following objects are masked from ‘package:stats’:
#> 
#>     filter, lag
#> The following objects are masked from ‘package:base’:
#> 
#>     intersect, setdiff, setequal, union
data(cori_employment)
cori_employment %>%
  ggplot(aes(estimate_pop_2014, estimate_pop_2019)) +
  geom_watermark(alpha = 0.1) +
  geom_point(size = 4, alpha = .6)