Skip to content

Add the dampack hex logo and site favicons - #258

Merged
feralaes merged 1 commit into
mainfrom
logo
Nov 14, 2026
Merged

feralaes merged 1 commit into
mainfrom
logo

Conversation

@feralaes

Copy link
Copy Markdown
Collaborator

The group chose option I from the sticker prototypes. This PR adds it to the package, the README and the website.

The design

The sticker is drawn from dampack's own output on cancer_psa_data:

  • Top panel: the three strategies' acceptability curves (ceac()), with the acceptability frontier (CEAF) as the heavy line and squares.
  • Bottom panel: their expected loss curves (calc_exp_loss()), on a log scale. The frontier equals the EVPI.
  • Dotted line: both frontiers switch from Radio to Chemo at the same threshold, $40,000/QALY. make_hex.R checks this with stopifnot().

The figure shows why ELCs complement the CEAC and CEAF (Alarid-Escudero et al., 2019, doi:10.1016/j.jval.2019.02.008). The colours are viridis option D, as in col = "access", and the wordmark is JetBrains Mono Bold.

Files

Where What
man/figures/logo.png 240 × 278 px, 17 KB. In the README header, and on the pkgdown home page automatically.
pkgdown/favicon/ The files pkgdown 2.2 links: favicon.svg, favicon.ico (16/32/48), favicon-96x96.png, apple-touch-icon.png, site.webmanifest with its 192/512 icons.
logo/dampack-hex.svg, logo/dampack-hex-600dpi.png The sticker, and a print version (2 in tall at 600 dpi, transparent outside the hex).
logo/dampack-hex-small.svg, logo/dampack-hex-icon.svg ELCs only, for small sizes. The icon has no text, so it stays legible as a 16–32 px favicon.
logo/make_hex.R, logo/render.sh, logo/README.md How to rebuild everything from the current dampack.

logo/ and pkgdown/ are build-ignored, so the installed package gains only the 17 KB logo.png.

For printing: the SVG loads its font from Google Fonts. Use dampack-hex-600dpi.png, or, if a print shop wants outlined text, convert the SVG's text to paths in Inkscape. logo/README.md explains how.

Favicons: I generated them locally with logo/render.sh instead of pkgdown::build_favicons(), because that function uploads the logo to an external web service.

Verification

…rom dampack output

- Sticker (option I): CEACs with the CEAF above the expected loss curves of cancer_psa_data,
  on one WTP axis; both frontiers switch from Radio to Chemo at $40,000 (dotted line).
  viridis option D colours (col = "access"), JetBrains Mono wordmark.
- man/figures/logo.png (240 x 278, 17 KB) in the README header and on the pkgdown home page.
- pkgdown/favicon/: favicon.svg/.ico/96px, apple-touch-icon, web manifest, from an ELC-only
  icon without text that stays legible at 16-32 px.
- logo/: make_hex.R (SVGs from ceac() and calc_exp_loss()), render.sh (PNGs, favicons),
  README.md, the SVGs and a 600 dpi print PNG. logo/ is build-ignored.
@feralaes
feralaes merged commit b80b9e6 into main Nov 14, 2026
13 checks passed
@feralaes
feralaes deleted the logo branch November 14, 2026 03:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant