-
AMR 3.1.0.9019
+
AMR 3.1.0.9021
This version fixes a critical bug in WISCA that biased all coverage estimates of wisca() and antibiogram(..., wisca = TRUE) downwards since AMR 3.0.0. Users are strongly advised to re-run their WISCA analyses.
-
Breaking
+
Breaking
-
mo_shortname() now returns the serovar for Salmonella serovars, e.g., "S. Typhi" and "S. Goldcoast" instead of "S. enterica". As this is the default for bug_drug_combinations() and short names in antibiogram(), serovars are no longer merged in their results. Use FUN = function(x) paste(mo_genus(x), mo_species(x)) in bug_drug_combinations() to group them by species (#341)
-
@@ -61,7 +61,7 @@
mdro() now applies the rule for Salmonella Typhi in the EUCAST guidelines, i.e., resistance to carbapenems (and fluoroquinolones in "EUCAST3.1"). This rule never applied before, so these isolates were wrongly classified as negative (#341)
-
New
+
New
-
Taxonomic names in plots
- New function
labels_taxonomy() to print taxonomic names in axis and legend labels in italics, which can directly be used as labeller in ggplot2 (e.g., scale_x_discrete(labels = labels_taxonomy)) and in base R plots
@@ -71,7 +71,7 @@
-
Changed
+
Changed
-
italicise_taxonomy()
- Species and subspecies names are now only italicised after a genus, an abbreviated genus, or another species or subspecies name, so that ordinary words such as “coli” or “major” stay upright. Salmonella serovars (such as Typhimurium) and groups are no longer italicised, and “subsp.”, “ssp.” and “var.” stay upright between italicised names
@@ -83,8 +83,11 @@
- Taxonomic names are now looked up once per session, making the function considerably faster for long vectors
-
-
labels_sir_count() and ggplot_sir()
+ggplot_sir(), geom_sir() and labels_sir_count()
- Fixed the data labels being placed on the wrong bars with
position = "dodge" or position = "stack". They are now grouped like the bars, using the new fill argument of labels_sir_count(), which ggplot_sir() sets automatically
+- If the interpretation is not shown in the plot, e.g., with
fill = "species", only the susceptible proportion is now plotted, following the guideline: S+SDD+I for EUCAST, S+SDD for CLSI, and S with guideline = NULL. Previously, the bars of all interpretations were drawn on top of each other. The y axis title of ggplot_sir() then states the category, e.g., “Proportion SI”, and the data labels show the number of tested isolates
+-
+
ggplot_sir() now splits the plot by antimicrobial if there is more than one and the antimicrobial is not shown in the plot, e.g., with x = "species", as their bars were previously stacked on top of each other. This uses facet = "antibiotic" if facet is not set, and otherwise a grid of facet by antimicrobial
-
ggplot_pca()
@@ -105,7 +108,7 @@
-
Other
+
Other
- The manual index on the website was rewritten to improve findability, with sections ordered by task and a filter field
- Fixed the link to the copyright section and added MycoBank as a taxonomy source in the Welcome to AMR vignette (#325)
diff --git a/news/index.md b/news/index.md
index 2596d75ba..3d5738a6d 100644
--- a/news/index.md
+++ b/news/index.md
@@ -1,6 +1,6 @@
# Changelog
-## AMR 3.1.0.9019
+## AMR 3.1.0.9021
This version fixes a critical bug in WISCA that biased all coverage
estimates of [`wisca()`](https://amr-for-r.org/reference/antibiogram.md)
@@ -82,8 +82,9 @@ are strongly advised to re-run their WISCA analyses.
- `NA` values now return `NA` instead of `"NA"`
- Taxonomic names are now looked up once per session, making the
function considerably faster for long vectors
-- [`labels_sir_count()`](https://amr-for-r.org/reference/ggplot_sir.md)
- and [`ggplot_sir()`](https://amr-for-r.org/reference/ggplot_sir.md)
+- [`ggplot_sir()`](https://amr-for-r.org/reference/ggplot_sir.md),
+ [`geom_sir()`](https://amr-for-r.org/reference/ggplot_sir.md) and
+ [`labels_sir_count()`](https://amr-for-r.org/reference/ggplot_sir.md)
- Fixed the data labels being placed on the wrong bars with
`position = "dodge"` or `position = "stack"`. They are now grouped
like the bars, using the new `fill` argument of
@@ -91,6 +92,20 @@ are strongly advised to re-run their WISCA analyses.
which
[`ggplot_sir()`](https://amr-for-r.org/reference/ggplot_sir.md) sets
automatically
+ - If the interpretation is not shown in the plot, e.g., with
+ `fill = "species"`, only the susceptible proportion is now plotted,
+ following the guideline: S+SDD+I for EUCAST, S+SDD for CLSI, and S
+ with `guideline = NULL`. Previously, the bars of all interpretations
+ were drawn on top of each other. The y axis title of
+ [`ggplot_sir()`](https://amr-for-r.org/reference/ggplot_sir.md) then
+ states the category, e.g., “Proportion SI”, and the data labels show
+ the number of tested isolates
+ - [`ggplot_sir()`](https://amr-for-r.org/reference/ggplot_sir.md) now
+ splits the plot by antimicrobial if there is more than one and the
+ antimicrobial is not shown in the plot, e.g., with `x = "species"`,
+ as their bars were previously stacked on top of each other. This
+ uses `facet = "antibiotic"` if `facet` is not set, and otherwise a
+ grid of `facet` by antimicrobial
- [`ggplot_pca()`](https://amr-for-r.org/reference/ggplot_pca.md)
- Fixed an error when setting `groups` together with `labels`, and
setting `groups` without `labels` now colours the points by these
diff --git a/pkgdown.yml b/pkgdown.yml
index c34a713b9..dd4c12d68 100644
--- a/pkgdown.yml
+++ b/pkgdown.yml
@@ -10,7 +10,7 @@ articles:
PCA: PCA.html
WHONET: WHONET.html
WISCA: WISCA.html
-last_built: 2026-11-09T21:08Z
+last_built: 2026-11-09T21:14Z
urls:
reference: https://amr-for-r.org/reference
article: https://amr-for-r.org/articles
diff --git a/reference/AMR-deprecated.html b/reference/AMR-deprecated.html
index 0065c473a..d50f87120 100644
--- a/reference/AMR-deprecated.html
+++ b/reference/AMR-deprecated.html
@@ -7,7 +7,7 @@
AMR (for R)
-
3.1.0.9019
+
3.1.0.9021