Skip to content

Commit

Permalink
Issue #784 - Add an entry for the scoringutils paper on the pkgdown s…
Browse files Browse the repository at this point in the history
…ite (#797)

* Make heatmap plot readable

* Update pkgdown site to include link to scoringutils paper

* add articles section back in
  • Loading branch information
nikosbosse committed May 12, 2024
1 parent 110502d commit a5379b7
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
8 changes: 8 additions & 0 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ authors:
Sam Abbott:
href: "https://www.samabbott.co.uk/"

navbar:
structure:
left: [reference, paper, articles, changelog]
right: [search, github]
components:
paper:
text: "scoringutils paper"
href: https://raw.githubusercontent.com/epiforecasts/scoringutils/main/inst/manuscript/manuscript.pdf

reference:
- title: Package documentation
Expand Down
3 changes: 3 additions & 0 deletions inst/manuscript/manuscript.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,9 @@ example_sample_continuous[horizon == 2] |>
as_forecast() |>
score() |>
summarise_scores(by = c("model", "location", "target_type")) |>
summarise_scores(
by = c("model", "location", "target_type"),
fun = signif, digits = 2) |>
plot_heatmap(x = "location", metric = "bias") +
facet_wrap(~ target_type)
```
Expand Down
Binary file modified inst/manuscript/manuscript.pdf
Binary file not shown.
3 changes: 3 additions & 0 deletions inst/manuscript/manuscript.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1219,6 +1219,9 @@ \subsubsection{Heatmaps}\label{heatmaps}
+ as_forecast() |>
+ score() |>
+ summarise_scores(by = c("model", "location", "target_type")) |>
+ summarise_scores(
+ by = c("model", "location", "target_type"),
+ fun = signif, digits = 2) |>
+ plot_heatmap(x = "location", metric = "bias") +
+ facet_wrap(~ target_type)
\end{CodeInput}
Expand Down

0 comments on commit a5379b7

Please sign in to comment.