install.packages("hexSticker")
library(hexSticker)
imgurl <- system.file("figures/cat.png", package="hexSticker")
sticker(
##########################################################################
# Subplot Adjustments (Image or Plot)
##########################################################################
imgurl, # Subplot (Image or Plot)
s_x=1, # x position for subplot
s_y=.75, # y position for subplot
s_width=.6, # width for subplot
# s_height=, # height for subplot
##########################################################################
# Package Name Adjustments
##########################################################################
package="hexSticker", # R Package or Shiny name
p_x = , # x position for package name
p_y = , # y position for package name
p_size=20, # font size for package name
p_family = "gochi", # font family for package name
p_color = , # color for package name
p_fontface = , # fontface for package name
##########################################################################
# Hexagon Border Adjustments
##########################################################################
h_size = , # size for hexagon border
h_fill = , # color to fill hexagon
h_color = , # color for hexagon border
##########################################################################
# Spotlight Adjustments
##########################################################################
spotlight = , # whether add spotlight
l_x = , # x position for spotlight
l_y = , # y position for spotlight
l_width = , # width for spotlight
l_height = , # height for spotlight
l_alpha = , # maximum alpha for spotlight
##########################################################################
# URL Adjustments
##########################################################################
url = , # url at lower border
u_x = , # x position for url
u_y = , # y position for url
u_color = , # color for url
u_family = , # font family for url
u_size = , # text size for url
u_angle = , # angle for url
##########################################################################
# Save
##########################################################################
white_around_sticker = , # default to FALSE. If TRUE: white triangles in corners
asp = , # aspect ratio, only works if subplot is an image file
dpi = , # dpi plot resolution
filename="inst/figures/imgfile.png" # filename to save sticker
)Create R Hexagon
See more about how to make an R Hexagon with the R Sticker documentation.