knitr::opts_chunk$set(echo = TRUE)
library(ggstamp)
library(tidyverse)

positions <- pos_honeycomb(n = 15, ncol = 3)

ggcanvas() + 
  stamp_polygon_holes(x0y0 = positions, 
                      fill = "white", radius = .95) + 
  # stamp_text(xy = positions,
  #            size = 4,
  #            label = c("flipbookr", "ggxmean", "ggsample", "ggstamp",
  #                      "doublecrochet",
  #                      "codeexplode", "exampleexploder", "ggmemory")) + 
  stamp_polygon(x0y0 = positions,
                alpha = .5, radius = .95)

Including Plots

You can also embed plots, for example:

plot(pressure)

Note that the echo = FALSE parameter was added to the code chunk to prevent printing of the R code that generated the plot.



EvaMaeRey/ggstamp documentation built on June 30, 2022, 11 p.m.