| ggbackdrop | R Documentation |
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]
)
height |
library(ggplot2)
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()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.