Skip to content

Commit

Permalink
Merge pull request #65 from Metropolitan-Council/hex-logo
Browse files Browse the repository at this point in the history
Hex logo
  • Loading branch information
eroten authored Sep 7, 2023
2 parents 6ddf0c0 + 8ecfc1e commit 2e7e212
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ knitr::opts_chunk$set(
)
```

# councilR
# councilR <img src="man/figures/logo.png" align="right" height="400" />

<!-- badges: start -->
[![R-CMD-check](https://github.com/Metropolitan-Council/councilR/workflows/R-CMD-check/badge.svg)](https://github.com/Metropolitan-Council/councilR/actions)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

<!-- README.md is generated from README.Rmd. Please edit that file -->

# councilR
# councilR <img src="man/figures/logo.png" align="right" height="400" />

<!-- badges: start -->

Expand Down
Binary file added data-raw/Metropolitan Council Mark White.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
40 changes: 40 additions & 0 deletions data-raw/sticker.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
library(hexSticker)
library(councilR)


showtext::showtext_auto()
sysfonts::font_paths()
files <- sysfonts::font_files()
sysfonts::font_add("HelveticaNeueLT Std Cn", "HelveticaNeueLTStd-Cn.otf")
sysfonts::font_add("HelveticaNeueLT Std Lt", "HelveticaNeueLTStd-Lt.otf")
sysfonts::font_add("HelveticaNeueLT Std Thin", "HelveticaNeueLTStd-Th.otf")
sysfonts::font_add("Arial Narrow", "Arial Narrow.ttf")
sysfonts::font_add("HelveticaNeueLT Std Med Cn", "HelveticaNeueLTStd-MdCn.otf")
sysfonts::font_add("Palatino Linotype", "pala.ttf")


print(
sticker(
subplot = "data-raw/Metropolitan Council Mark White.png",
package = "councilR",
p_size = 27,
p_color = "white",
h_fill = councilR::colors$councilBlue,
s_x = 1,
s_y = 0.85,
s_height = 0.45,
s_width = 0.45 * 1.1,
white_around_sticker = FALSE,
h_size = 3,
h_color = councilR::blue_cascade$level1$background,
p_x = 1,
p_y = 1.45,
p_family = "HelveticaNeueLT Std Thin",
url = "github.com/Metropolitan-Council/councilR",
u_color = "gray85",
u_family = "Palatino Linotype",
u_size = 3.5,
dpi = 300
))

# saved manually at 518 x 600
Binary file added man/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.

0 comments on commit 2e7e212

Please sign in to comment.