mirror of
https://github.com/msberends/AMR.git
synced 2026-11-16 01:30:54 +01:00
(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:
1 parent
43accd35d1
commit
08aa47842e
7 files changed
+23
-11
No files matched your search
+2
-1
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user