diff --git a/inst/make_hexsticker.R b/inst/make_hexsticker.R index aaf9dadb8..35da84bec 100644 --- a/inst/make_hexsticker.R +++ b/inst/make_hexsticker.R @@ -1,11 +1,7 @@ library(hexSticker) -library(sysfonts) library(ggplot2) library(dplyr) -# font setup -font_add_google("Zilla Slab Highlight", "useme") - # make standard plot outbreak <- simulate_gillespie(seed = 101) @@ -45,7 +41,7 @@ hex_plot <- combined_obs |> fun = dlnorm, args = c(meanlog, sdlog), n = 100, col = "#696767b1" ) + - scale_fill_brewer(palette = "Set2", direction = 1) + + scale_fill_brewer(palette = "Blues", direction = 1) + scale_y_continuous(breaks = NULL) + labs(x = "", y = "") + theme_void() + @@ -58,16 +54,21 @@ hex_plot <- combined_obs |> # Make and save hexsticker sticker( hex_plot, + s_x = 1, + s_y = 0.85, + s_width = 2.4, + s_height = 1.9, package = "epidist", - p_size = 23, p_color = "#646770", - p_x = 1.3, - p_y = 1.15, - s_x = 0.85, - s_y = 1, - s_width = 1.2, - s_height = 1.2, + p_size = 42, + p_x = 1.35, + p_y = 1.1, h_fill = "#ffffff", h_color = "#646770", - filename = file.path("man", "figures", "logo.png") + filename = file.path("man", "figures", "logo.png"), + dpi = 600, + white_around_sticker = TRUE ) + +usethis::use_logo(file.path("man", "figures", "logo.png")) +pkgdown::build_favicons(pkg = ".", overwrite = TRUE) diff --git a/man/figures/logo.png b/man/figures/logo.png index 84a01d17b..8a1c57c8e 100644 Binary files a/man/figures/logo.png and b/man/figures/logo.png differ diff --git a/pkgdown/favicon/apple-touch-icon-120x120.png b/pkgdown/favicon/apple-touch-icon-120x120.png index 3e94561d2..68d80eacf 100644 Binary files a/pkgdown/favicon/apple-touch-icon-120x120.png and b/pkgdown/favicon/apple-touch-icon-120x120.png differ diff --git a/pkgdown/favicon/apple-touch-icon-152x152.png b/pkgdown/favicon/apple-touch-icon-152x152.png index 92daafcef..99ce61668 100644 Binary files a/pkgdown/favicon/apple-touch-icon-152x152.png and b/pkgdown/favicon/apple-touch-icon-152x152.png differ diff --git a/pkgdown/favicon/apple-touch-icon-180x180.png b/pkgdown/favicon/apple-touch-icon-180x180.png index 7408a076c..45469fde4 100644 Binary files a/pkgdown/favicon/apple-touch-icon-180x180.png and b/pkgdown/favicon/apple-touch-icon-180x180.png differ diff --git a/pkgdown/favicon/apple-touch-icon-60x60.png b/pkgdown/favicon/apple-touch-icon-60x60.png index 7e9b6419a..8a58a9b4b 100644 Binary files a/pkgdown/favicon/apple-touch-icon-60x60.png and b/pkgdown/favicon/apple-touch-icon-60x60.png differ diff --git a/pkgdown/favicon/apple-touch-icon-76x76.png b/pkgdown/favicon/apple-touch-icon-76x76.png index b1eca8f2b..fd69254a3 100644 Binary files a/pkgdown/favicon/apple-touch-icon-76x76.png and b/pkgdown/favicon/apple-touch-icon-76x76.png differ diff --git a/pkgdown/favicon/apple-touch-icon.png b/pkgdown/favicon/apple-touch-icon.png index 7408a076c..e35f97cba 100644 Binary files a/pkgdown/favicon/apple-touch-icon.png and b/pkgdown/favicon/apple-touch-icon.png differ diff --git a/pkgdown/favicon/favicon-16x16.png b/pkgdown/favicon/favicon-16x16.png index 75f80ed48..1ca2cd264 100644 Binary files a/pkgdown/favicon/favicon-16x16.png and b/pkgdown/favicon/favicon-16x16.png differ diff --git a/pkgdown/favicon/favicon-32x32.png b/pkgdown/favicon/favicon-32x32.png index 128d3f771..1251ebb95 100644 Binary files a/pkgdown/favicon/favicon-32x32.png and b/pkgdown/favicon/favicon-32x32.png differ diff --git a/pkgdown/favicon/favicon.ico b/pkgdown/favicon/favicon.ico index ba68a8171..875a0109e 100644 Binary files a/pkgdown/favicon/favicon.ico and b/pkgdown/favicon/favicon.ico differ