Skip to content

Instantly share code, notes, and snippets.

@brandmaier
Created November 28, 2019 10:37
Show Gist options
  • Save brandmaier/693a005364253fa1eec3e4e1fbd51a77 to your computer and use it in GitHub Desktop.
Save brandmaier/693a005364253fa1eec3e4e1fbd51a77 to your computer and use it in GitHub Desktop.
hex sticker for semtree package
# define colors
dark.green<-"#48631A"
light.green<-"#87B13F"
# hex sticker library
library(hexSticker)
# public domain image source:
# https://publicdomainvectors.org/en/free-clipart/Vector-clip-art-of-oaktree-with-wide-treetop/24731.html
imgurl<-"https://publicdomainvectors.org/photos/tree-oak400px.png"
# 'print' sticker
sticker(imgurl, package="semtree", p_size=10, s_x=1, s_y=.70, s_width=.6,
filename="semtree-hexsticker.png",h_fill = light.green, h_color = dark.green)
@brandmaier
Copy link
Author

Final product:
semtree-hexsticker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment