(v3.1.0.9019) Fix the data labels of labels_sir_count() being placed on the wrong bars with position = "dodge" or "stack"

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2026-11-09 21:52:40 +01:00
1 parent 77b6cb1713
commit 054066b855
6 files changed
+37 -5

No files matched your search

+3 -1
View File
@@ -1,4 +1,4 @@
# AMR 3.1.0.9018
# AMR 3.1.0.9019
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.
@@ -19,6 +19,8 @@ This version fixes a critical bug in WISCA that biased all coverage estimates of
* Fixed punctuation being italicised along with taxonomic names, e.g., `"(S. aureus)"` now gives `"(*S. aureus*)"` instead of `"(S. *aureus)*"`
* `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()` and `ggplot_sir()`
* 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
* `ggplot_pca()`
* Fixed an error when setting `groups` together with `labels`, and setting `groups` without `labels` now colours the points by these groups instead of using them as labels, as documented
* WISCA (`wisca()` and `antibiogram(..., wisca = TRUE)`)