Use nice illustration of Sharpness and calibration
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Documentation
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- r
- Domain
- documentation
Research direction
Start with the supplied R/ggplot2/patchwork code and the generated inst/manuscript/output/calibration-sharpness-illustration.png. Check the current manuscript and vignettes to identify an appropriate location, then confirm whether the illustration should be reused there; done means the image and its source are placed in an agreed documentation location.
Written by the indexing model from the issue text.
Description
We have this illustration:
Generated by this code:
library(ggplot2)
library(patchwork)
library(scoringutils)
p1 <-
ggplot(data.frame(x = seq(-8, 8, 0.01),
x_example = rnorm(n = 1601, mean = 0, sd = 0.45)),
aes(x = x)) +
geom_function(fun = dnorm, colour = "black",
args = list(sd = 0.45)) +
expand_limits(y = c(0, 1.0), x = c(-3, 3)) +
scale_y_continuous(breaks = seq(0, 1, 0.25)) +
ggtitle("More sharp") +
theme_scoringutils()
p2 <-
ggplot(data.frame(x = seq(-8, 8, 0.01),
x_example = rnorm(n = 1601, mean = 0, sd = 1.25)),
aes(x = x)) +
geom_function(fun = dnorm, colour = "black",
args = list(sd = 1.25)) +
expand_limits(y = c(0, 1.0), x = c(-3, 3)) +
scale_y_continuous(breaks = seq(0, 1, 0.25)) +
ggtitle("Less sharp") +
theme_scoringutils()
p21 <- ggplot(data.frame(x = seq(-8, 8, 0.01),
x_example = rnorm(n = 1601, mean = 0, sd = 1.05)),
aes(x = x)) +
geom_histogram(aes(x = x_example, y = after_stat(density)), colour = "white", fill = "grey50") +
geom_function(fun = dnorm, colour = "black",
args = list(sd = 1)) +
ggtitle("Well calibrated") +
labs(y = "Density") +
theme_scoringutils()
p22 <- ggplot(data.frame(x = seq(-8, 8, 0.01),
x_example = rnorm(n = 1601, mean = 1, sd = 1.05)),
aes(x = x)) +
geom_histogram(aes(x = x_example, y = after_stat(density)), colour = "white", fill = "grey50") +
geom_function(fun = dnorm, colour = "black",
args = list(mean = 2, sd = 1)) +
ggtitle("Badly calibrated") +
labs(y = "Density") +
theme_scoringutils()
p23 <- ggplot(data.frame(x = seq(-8, 8, 0.01),
x_example = rnorm(n = 1601, mean = 0, sd = 1.05)),
aes(x = x)) +
geom_histogram(aes(x = x_example, y = after_stat(density)), colour = "white", fill = "grey50") +
geom_function(fun = dnorm, colour = "black",
args = list(mean = 0, sd = 2.05)) +
ggtitle("Badly calibrated") +
labs(y = "Density") +
theme_scoringutils()
(p1 + p2) /
(p21 + p22 + p23) &
plot_annotation(tag_levels = "A")
ggsave("inst/manuscript/output/calibration-sharpness-illustration.png",
width = 8, height = 3.8)
It was previously used in the manuscript, but not anymore. Maybe we want to use it somewhere else, e.g. in a vignette?
Maybe related to #759?
- Dominant language
- R
- Stars
- 67
- Forks
- 24
- Avg merge
- 1h 24m
- Merged PRs (30d)
- 2
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from epiforecasts/scoringutils
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
epiforecasts/scoringutils#1264 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
epiforecasts/scoringutils#1265 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
epiforecasts/scoringutils#1260 ·
Maintainers usually reply within 1 day
-
Incorrect guidance in `NEWS.md` re `add_relative_skill()`?Possibly taken @nikosbosse claimed this 15 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
epiforecasts/scoringutils#1226 · 1 comment · 2 reactions ·
Maintainers usually reply within 1 day
-
get_pit_histogram(): unsorted breaks produce negative densities; num_bins = 1 returns an empty tablePossibly taken @nikosbosse claimed this 15 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
epiforecasts/scoringutils#1219 ·
Maintainers usually reply within 1 day
All issues in epiforecasts/scoringutils
Similar issues
-
data_bio2rarify - doc - dimensions wrongPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 1/5 Under an hour Newbie friendliness 88/100
leppott/BioMonTools#162 ·
-
publications
Difficulty 1/5 Under an hour Newbie friendliness 85/100
epiforecasts/epiforecasts.github.io#161 ·
Maintainers usually reply within 1 day
-
Label `{sas}` chunk source as `sas` instead of `txt`, so it gets syntax highlightingPossibly taken @michaelmayer2 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
microbiome/OMA#1031 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
ThinkR-open/golem#1265 ·