Skip to content

Commit

Permalink
add logo
Browse files Browse the repository at this point in the history
  • Loading branch information
DanChaltiel committed Feb 4, 2025
1 parent 77b9e1c commit 5c7f8e5
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
Binary file added inst/figures/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added inst/figures/table.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 35 additions & 0 deletions inst/hex.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@

library(tidyverse)

p =
tibble(angle = 2*pi/6*seq(0,6),
y_arrow = c(0.2,0.35,0.35, 0.2,0.35,0.35, 0.2)) %>%
ggplot() +
aes(x=angle, y=1) +
geom_image(image="inst/figures/table.png", size=0.2) +
geom_segment(aes(x=angle, xend=angle, y=y_arrow, yend=0.7),
arrow=arrow(type="open", length=unit(0.2, "cm")),
linewidth=0.5, color="black") +
ylim(0, NA) +
coord_polar(theta = "x") +
theme_void()


hexSticker::sticker(
#package name
package="EDCimport",
p_size=20,
p_x=1, p_y=1,
#hexagon
h_fill = "#404040",
h_color = "#e85811",
h_size = 1.2,
#subplot
subplot= p,
s_x=1, s_y=1,
s_width=1.75,
s_height=5000,
#output
filename="inst/figures/logo.png"
)

0 comments on commit 5c7f8e5

Please sign in to comment.