(v3.0.1.9152) Let a named colours_SIR without S, I or R use the default colours for these, which fixes the example of ggplot_sir() with colours = c(SI = "yellow"), let ggplot_sir() pass the facet as a value to facet_sir(), and make the test of the eucast_I default independent of the AMR_guideline option

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2026-10-16 04:34:52 +02:00
1 parent 43accd35d1
commit 08aa47842e
7 files changed
+23 -11

No files matched your search

+7
View File
@@ -59,6 +59,13 @@ test_that("test-ggplot_sir.R", {
ggplot_sir(x = "antibiotic", facet = "interpretation"),
"gg"
)
# the facet is passed on as value, so the plot can be built
expect_inherits(
ggplot_build(example_isolates %>%
select(AMC, CIP) %>%
ggplot_sir(x = "interpretation", facet = "antibiotic")),
"ggplot_built"
)
expect_equal(
(example_isolates %>%