mirror of
https://github.com/msberends/AMR.git
synced 2025-07-12 17:41:50 +02:00
(v1.6.0.9021) join functions update
This commit is contained in:
@ -10,7 +10,7 @@ italicise_taxonomy(string, type = c("markdown", "ansi"))
|
||||
italicize_taxonomy(string, type = c("markdown", "ansi"))
|
||||
}
|
||||
\arguments{
|
||||
\item{string}{a character (vector)}
|
||||
\item{string}{a \link{character} (vector)}
|
||||
|
||||
\item{type}{type of conversion of the taxonomic names, either "markdown" or "ansi", see \emph{Details}}
|
||||
}
|
||||
@ -40,4 +40,13 @@ italicise_taxonomy("An overview of Staphylococcus aureus isolates")
|
||||
italicise_taxonomy("An overview of S. aureus isolates")
|
||||
|
||||
cat(italicise_taxonomy("An overview of S. aureus isolates", type = "ansi"))
|
||||
|
||||
# since ggplot2 supports no markdown (yet), use
|
||||
# italicise_taxonomy() and the `ggtext` pkg for titles:
|
||||
|
||||
if (require("ggplot2") && require("ggtext")) {
|
||||
ggplot(example_isolates$AMC,
|
||||
title = italicise_taxonomy("Amoxi/clav in E. coli")) +
|
||||
theme(plot.title = ggtext::element_markdown())
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user