Create a blank canvas centered at 0, 0 to use stamps on

ggbackdrop(
  x = 0,
  y = 0,
  width = 100,
  alpha = 1,
  png = system.file("img", "Rlogo.png", package = "png"),
  image = png::readPNG(png),
  height = width * dim(image)[1]/dim(image)[2]
)

Arguments

height

Value

Examples

library(ggplot2)
#> Warning: package ‘ggplot2’ was built under R version 3.6.2
ggbackdrop() + stamp_curve(curvature = .3, yend = 75, xend = 100) + stamp_polygon(x0 = 20, y0 = 60, radius = 20, alpha = .4) + stamp_text(x = 20, y = 60, label = "{ggstamp}", size = 5, color = "grey97")
# voiding grid last_plot() + theme_void()