Skip to content

Instantly share code, notes, and snippets.

@schoulten
Created March 13, 2021 12:53
Show Gist options
  • Save schoulten/5f794804604420697db9ac92166810fc to your computer and use it in GitHub Desktop.
Save schoulten/5f794804604420697db9ac92166810fc to your computer and use it in GitHub Desktop.
Create R Package Logo
# Load packages
library(hexSticker)
library(cowplot)
library(showtext)
# Add a great Google Font
font_add_google("Do Hyeon")
# Import a image to R
png <- ggdraw() + draw_image("./statistics.png", scale = 1.65)
# Draw sticker (logo) and save
sticker(
subplot = png,
package = "meedr", # package name: MacroEconomic Expectations Data in R
s_x = 1,
s_y = 0.7,
p_color = "#3A7190",
p_family = "Do Hyeon",
p_size = 42,
p_y = 1.35,
h_fill = "#AED6E9",
h_color = "#3A7190",
url = "github.com/schoulten/meedr",
u_color = "#3A7190",
u_size = 4.6,
filename = "meedr.png"
)
@schoulten
Copy link
Author

meedr

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