Created
July 20, 2025 10:13
-
-
Save vjcitn/091e8678d1df2decc85b94229a7197a0 to your computer and use it in GitHub Desktop.
workflow for hex sticker given an image (owl.jpg for ontoProc)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(cropcircles) | |
library(magick) | |
y = image_read("owl.jpg") # https://commons.wikimedia.org/wiki/File:Great_Horned_Owl_(30706490070).jpg | |
library(cropcircles) | |
img_cropped_path <- hex_crop( | |
images = "owl.jpg", | |
border_colour = "#107e54", | |
border_size = 24 | |
) | |
library(tidyverse) | |
library(ggpath) | |
library(tidyverse) | |
library(ggpath) | |
library(ggtext) | |
library(glue) | |
ggplot() + | |
geom_from_path(aes(0.5, 0.5, path = img_cropped_path)) + | |
annotate("text", x=.5, y=.5, label="ontoProc", fontface="bold", colour="gold", size=32, angle=22) + | |
xlim(0, 1) + | |
ylim(0, 1) + | |
theme_void() + | |
coord_fixed() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment