Skip to content

Commit

Permalink
Hex sticker (#142)
Browse files Browse the repository at this point in the history
* template code for hexsticker

* create traits.build hex

* Moved hex into folder that can be accessed by README and pkgdown

---------

Co-authored-by: Daniel Falster <[email protected]>
Co-authored-by: Fonti Kar <[email protected]>
  • Loading branch information
3 people authored Nov 29, 2023
1 parent fcd7cde commit 9d33a1c
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

# The {traits.build} R package
# The {traits.build} R package <img src="man/figures/traits_build_hex2.png" align="right" alt="" width="120" />

<!-- badges: start -->
[![R-CMD-check](https://github.com/traitecoevo/traits.build/actions/workflows/R-CMD-check.yml/badge.svg)](https://github.com/traitecoevo/traits.build/actions/workflows/R-CMD-check.yml)
Expand Down
19 changes: 19 additions & 0 deletions inst/figures/hex.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@


f <- function(filename) {
p <- ggplot() + theme_void() + ggpubr::theme_transparent()

#p <- file.path("logo_green_transparent.png")

hexSticker::sticker(p,
package="traits.build",
p_color = "chartreuse4",
p_size=25,
p_y = 1.05,
s_x=.94, s_y=1.02,
s_width=.75, s_height = .75,
h_fill = "white", h_color = "chartreuse4",
filename=filename)
}

f("traits_build_hex2.png")
Binary file added inst/figures/traits_build_hex.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/traits_build_hex2.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 man/figures/traits_build_hex2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9d33a1c

Please sign in to comment.