mirror of
https://github.com/msberends/AMR.git
synced 2026-11-16 03:40:48 +01:00
Let aggregated analyses follow the guideline for the 'I' category in count_df(), proportion_df(), sir_df(), the plotting functions, antibiogram(), wisca(), and bug_drug_combinations(), deprecate combine_SI in favour of guideline, fix format() on bug_drug_combinations() counting I as resistant, and add a shared section 'Interpretation of SIR'
This commit is contained in:
1 parent
dbd95ffa46
commit
0efc8826c8
32 files changed
+511
-199
No files matched your search
@@ -101,6 +101,16 @@ test_that("test-ggplot_sir.R", {
|
||||
levels(ggplot_sir(example_isolates[, c("AMC", "CIP")], guideline = "CLSI")$layers[[1]]$data(example_isolates[, c("AMC", "CIP")])$interpretation),
|
||||
c("S", "IR")
|
||||
)
|
||||
# S, I, and R are kept separate with guideline = NULL
|
||||
expect_identical(
|
||||
levels(ggplot_sir(example_isolates[, c("AMC", "CIP")], guideline = NULL)$layers[[1]]$data(example_isolates[, c("AMC", "CIP")])$interpretation),
|
||||
c("S", "I", "R")
|
||||
)
|
||||
# the deprecated combine_SI must be followed literally if set, regardless of the guideline
|
||||
expect_identical(
|
||||
levels(suppressWarnings(ggplot_sir(example_isolates[, c("AMC", "CIP")], combine_SI = TRUE, guideline = "CLSI"))$layers[[1]]$data(example_isolates[, c("AMC", "CIP")])$interpretation),
|
||||
c("SI", "R")
|
||||
)
|
||||
|
||||
# support for scale_type ab and mo
|
||||
expect_inherits(
|
||||
|
||||
Reference in new issue
Block a user