R/2026-01-22_ZS_R_Galaxy_sticker.R

# ################################################################################
# # LOGO GALAXYR
# ################################################################################
#
# # install specific fork
# pak::pak("emilioxavier/hexSticker")
#
# # change working dir
# setwd("./inst/figures")
#
# # load packages
# library(hexSticker)
# library(showtext)
# library(ggplot2)
#
# font_add_google(
#   name = "Comfortaa",
#   family = "Comfortaa")
# showtext_auto()
#
# # load image
# imgurl <- "galaxyr_transparent.png"
#
# # make sticker
# s <- sticker(
#   imgurl, s_x = 1, s_y = 1.15, s_width = .7,
#   package = "GalaxyR", p_size = 20, p_x = 1, p_y = 0.6, p_family = "Comfortaa", p_fontface = "bold",
#   h_size = 2,  h_color = "#276ABE", h_fill = "#22272E",
#   filename = "logo_galaxyr.png")
# plot(s)
#
# ################################################################################

Try the GalaxyR package in your browser

Any scripts or data that you put into this service are public.

GalaxyR documentation built on July 6, 2026, 5:08 p.m.