Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@
^LICENSE\.md$
^CODE_OF_CONDUCT\.md$
^README\.Rmd$
^logo$
2 changes: 1 addition & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ knitr::opts_chunk$set(
)
```

# dampack
# dampack <a href="https://darth-git.github.io/dampack/"><img src="man/figures/logo.png" align="right" height="139" alt="dampack website" /></a>

<!-- badges: start -->
[![CRAN status](https://www.r-pkg.org/badges/version/dampack)](https://CRAN.R-project.org/package=dampack)
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 README.Rmd, then run devtools::build_readme(). -->

# dampack
# dampack <a href="https://darth-git.github.io/dampack/"><img src="man/figures/logo.png" align="right" height="139" alt="dampack website" /></a>

<!-- badges: start -->

Expand Down
42 changes: 42 additions & 0 deletions logo/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# The dampack logo

The hex sticker is drawn from dampack's own output on `cancer_psa_data`, the package's main
example dataset:

- **Top panel:** the cost-effectiveness acceptability curves (CEACs) of the three strategies,
from `ceac()`, with the acceptability frontier (CEAF) as the heavy line and squares.
- **Bottom panel:** their expected loss curves (ELCs), from `calc_exp_loss()`, on a log scale.
The heavy line is the frontier, which equals the expected value of perfect information.
- **Dotted line:** both frontiers switch from Radio to Chemo at the same willingness-to-pay
threshold, $40,000/QALY. That is the argument for reporting ELCs alongside the CEAC and
CEAF ([Alarid-Escudero et al., 2019](https://doi.org/10.1016/j.jval.2019.02.008)).

The colours are viridis option D, the palette of `col = "access"` in dampack's plots. The
wordmark is set in JetBrains Mono Bold (SIL Open Font License).

## Files

| File | Use |
|---|---|
| `dampack-hex.svg` | The sticker. |
| `dampack-hex-600dpi.png` | Print: 2 in tall at 600 dpi, transparent outside the hex. |
| `dampack-hex-small.svg` | ELCs only, for small sizes where two panels are too busy. |
| `dampack-hex-icon.svg` | ELCs only, without text, for favicons. |
| `../man/figures/logo.png` | README and the pkgdown home page (240 × 278 px). |
| `../pkgdown/favicon/` | Site favicons, rendered from the icon. |

The SVGs load the wordmark font from Google Fonts. Print shops that ask for outlined text
need the text in `dampack-hex.svg` converted to paths, for example with
Inkscape (*Path > Object to Path*).

## Rebuilding

From the package root:

```sh
Rscript logo/make_hex.R # SVGs, from the current dampack
bash logo/render.sh # PNGs and favicons, with headless Google Chrome
```

`logo/` and `pkgdown/` are excluded from the package build, so only `man/figures/logo.png`
(17 KB) is installed with dampack.
Binary file added logo/dampack-hex-600dpi.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions logo/dampack-hex-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions logo/dampack-hex-small.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
39 changes: 39 additions & 0 deletions logo/dampack-hex.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading