(v3.0.1.9137) Add the guideline argument to count_df(), proportion_df(), sir_df(), ggplot_sir(), geom_sir(), and labels_sir_count(), so that with CLSI the 'I' category is merged with R, and describe in the documentation of get_AMR_locale() that LANG takes precedence over LANGUAGE

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2026-10-15 08:25:37 +02:00
1 parent 46f5de1d36
commit dbd95ffa46
17 files changed
+118 -40

No files matched your search

+3 -1
View File
@@ -1554,6 +1554,7 @@ labels_sir_count <- function(position = NULL,
minimum = 30,
language = get_AMR_locale(),
combine_SI = TRUE,
guideline = getOption("AMR_guideline", "EUCAST"),
datalabels.size = 3,
datalabels.colour = "grey15") {
stop_ifnot_installed("ggplot2")
@@ -1587,7 +1588,8 @@ labels_sir_count <- function(position = NULL,
translate_ab = translate_ab,
combine_SI = combine_SI,
minimum = minimum,
language = language
language = language,
guideline = guideline
)
transformed$gr <- transformed[, x_name, drop = TRUE]
transformed %pm>%