(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

+2 -1
View File
@@ -271,7 +271,8 @@ ggplot_sir <- function(data,
}
if (!is.null(facet)) {
p <- p + facet_sir(facet = facet, nrow = nrow)
# pass the value, as facet_sir() takes an unquoted name as column name
p <- p + do.call(facet_sir, list(facet = facet, nrow = nrow))
}
p <- p + ggplot2::labs(