remotes::install_github("emilioxavier/hexSticker")
packageVersion("hexSticker")
[1] ‘0.5.2’10 今卡六边形徽标
今卡生物和今卡生物图像的六边形徽标
R包最早带有六边形徽标(hex logo)可追溯至2014年(1)。
1. R包hexSticker
南方医科大学的余光创老师写了一个R包(即hexSticker(2)),基于此可以方便的制作六边形徽标。

2. hexSticker的安装
之所以用emilioxavier/hexSticker (3)的原因是因为Emilio Xavier Esposito解决了如下问题:
通过CRAN安装,生成的hex sticker的左边缘和下边缘不完整(像被切掉了一点点)。

本着好玩的目的,我们也尝试生成今卡的两个六边形徽标。
3. 今卡生物的hex logo
library(hexSticker)genecard_bio <- "images/genecard-bio_logo.png"
genecard_bio |> sticker(package = "GeneCard-Bio",
s_x = 1,
s_y = .75,
s_width = .4,
h_fill = "#F2F1EA",
p_color = "#692718",
p_family = "sans",
p_fontface = "italic",
p_size = 18,
filename = "images/genecard-bio_hex-logo.png")
4. 今卡生物图像的hex logo
genecard_bioimage <- "images/genecard-bioimage_logo.png"
genecard_bioimage |> sticker(package = "GeneCard-BioImage",
s_x = 1,
s_y = .75,
s_width = .6,
h_fill = "#F2F1EA",
p_color = "#692718",
p_family = "sans",
p_fontface = "italic",
p_size = 13,
filename = "images/genecard-bioimage_hex-logo.png")
References
1.
W. Hadley, A personal history of the tidyverse (2025). https://hadley.github.io/25-tidyverse-history/.
2.
G. Yu, hexSticker: Create Hexagon Sticker in r (2025; https://github.com/GuangchuangYu/hexSticker).
3.
G. Yu, hexSticker: Create Hexagon Sticker in r (2025; https://github.com/emilioxavier/hexSticker).