inst/media/sticker.R

library(hexSticker)

# img <- "inst/tornado_white.png"
img <- "inst/toilet-paper_white.png"

sticker(
  subplot = img,
  s_x = 1,
  s_y = 1.25,
  s_width = 0.45,
  s_height = 0.45,
  package = "reactflush",
  p_x = 1,
  p_y = 0.6,
  p_size = 20,
  p_color = "white",
  h_fill = "#21a0d2",
  h_color = "#004a96",
  spotlight = FALSE,
  l_x = 1,
  l_y = 1.5,
  l_height = 4,
  l_width = 4,
  l_alpha = 0.1,
  url = "github.com/svdwoude/reactflush",
  u_color = "white",
  u_x = 1,
  u_y = 0.05,
  u_size = 3,
  filename = "inst/reactflush.png"
)
basf/reactflush documentation built on Feb. 15, 2021, 12:12 a.m.