mirror of
https://github.com/msberends/AMR.git
synced 2026-11-16 08:30:49 +01:00
(v3.1.0.9018) Italicise taxonomic names in all plotting functions using labels_taxonomy(), and fix ggplot_pca() with explicit groups
This commit is contained in:
1 parent
cfb55a4c3e
commit
77b6cb1713
10 files changed
+78
-11
No files matched your search
@@ -107,6 +107,12 @@ italicise_taxonomy <- function(string, type = c("markdown", "ansi", "html", "plo
|
||||
)
|
||||
}
|
||||
|
||||
contains_taxonomy <- function(x) {
|
||||
# whether any value holds a taxonomic name that would be italicised
|
||||
x <- unique(as.character(x))
|
||||
any(vapply(taxonomy_pieces(x[!is.na(x)]), function(p) any(p$italic), logical(1)))
|
||||
}
|
||||
|
||||
get_taxonomy_names <- function() {
|
||||
# cached for the session, reset by reset_mo_cache() when the lookup table changes
|
||||
if (is.null(AMR_env$taxonomy_names)) {
|
||||
|
||||
Reference in new issue
Block a user