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
@@ -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 %>%
|
||||
|
||||
Reference in new issue
Block a user