diff --git a/README.Rmd b/README.Rmd index 6fb9115..ff4bef3 100644 --- a/README.Rmd +++ b/README.Rmd @@ -13,7 +13,7 @@ knitr::opts_chunk$set( ) ``` -# councilR +# councilR [![R-CMD-check](https://github.com/Metropolitan-Council/councilR/workflows/R-CMD-check/badge.svg)](https://github.com/Metropolitan-Council/councilR/actions) diff --git a/README.md b/README.md index 4030c9b..f02fe03 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ -# councilR +# councilR diff --git a/data-raw/Metropolitan Council Mark White.png b/data-raw/Metropolitan Council Mark White.png new file mode 100644 index 0000000..c726a84 Binary files /dev/null and b/data-raw/Metropolitan Council Mark White.png differ diff --git a/data-raw/sticker.R b/data-raw/sticker.R new file mode 100644 index 0000000..72f9ee2 --- /dev/null +++ b/data-raw/sticker.R @@ -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 diff --git a/man/figures/logo.png b/man/figures/logo.png new file mode 100644 index 0000000..58f99cc Binary files /dev/null and b/man/figures/logo.png differ