A data set with 22,000 rows and 10 columns, containing the following column names:
guideline, method, site, mo, ab, ref_tbl, disk_dose, breakpoint_S, breakpoint_R and uti.
This data set is in R available as rsi_translation
, after you load the AMR
package.
It was last updated on 12 July 2021 10:10:26 UTC. Find more info about the structure of this data set here.
+It was last updated on 12 July 2021 10:54:20 UTC. Find more info about the structure of this data set here.
Direct download links:
NEWS.md
- AMR
1.7.1.9019AMR
1.7.1.9020ggplot2::gggplot()
generics for classes <mic>
, <disk>
, <rsi>
and <resistance_predict>
did not follow the ggplot2
logic, and were replaced with autoplot()
generics.ab_class()
)
antibiotics
data setggplot2::autoplot()
generic for classes <mic>
, <disk>
, <rsi>
and <resistance_predict>
-NA
s for old MO codes when running as.mo()
on themproportion_*()
and count_*()
functions failas.mo()
@@ -268,9 +267,7 @@
random_mic()
, random_disk()
and random_rsi()
are now enforcedas.rsi()
can now correct for textual input (such as “Susceptible”, “Resistant”) in Dutch, English, French, German, Italian, Portuguese and Spanishcount_*()
, proportion_*()
function (or resistant()
or susceptible()
), the dplyr
group will be shown, if availablemo_name()
, mo_fullname()
, mo_shortname()
, mo_genus()
or mo_family()
-count_*()
, proportion_*()
function (or resistant()
or susceptible()
), the dplyr
group will be shown, if availableab_name()
gained argument snake_case
, which is useful for column renamingscale_rsi_colours()
when using ggplot2
v3.3.4 or higher (this is bug ggplot2#4511, soon to be fixed)betalactams()
as additional antbiotic column selector and function filter_betalactams()
as additional antbiotic column filter. The group of betalactams consists of all carbapenems, cephalosporins and penicillins.ggplot()
method for resistance_predict()
+ggplot()
method for resistance_predict()
Support for custom MDRO guidelines, using the new custom_mdro_guideline()
function, please see mdro()
for additional info
ggplot()
generics for classes <mic>
and <disk>
ggplot()
generics for classes <mic>
and <disk>
Function mo_is_yeast()
, which determines whether a microorganism is a member of the taxonomic class Saccharomycetes or the taxonomic order Saccharomycetales:
@@ -487,7 +484,7 @@
translate
)plot()
and with ggplot2 using ggplot()
on any vector of MIC and disk diffusion valuesplot()
and with ggplot2 using ggplot()
on any vector of MIC and disk diffusion valuesmicroorganisms
data setplot(<mic>)
ggplot(<mic>)
autoplot(<mic>)
plot(<disk>)
ggplot(<disk>)
autoplot(<disk>)
plot(<rsi>)
ggplot(<rsi>)
autoplot(<rsi>)
plot(<mic>)
autplot(<mic>)
plot(<disk>)
autoplot(<disk>)
plot(<rsi>)
autoplot(<rsi>)
Plotting for Classes rsi
, mic
and disk
resistance_predict()
rsi_predict()
plot(<resistance_predict>)
ggplot_rsi_predict()
ggplot(<resistance_predict>)
autoplot(<resistance_predict>)
resistance_predict()
rsi_predict()
plot(<resistance_predict>)
ggplot_rsi_predict()
autoplot(<resistance_predict>)
Predict antimicrobial resistance
Predict Antimicrobial Resistance
# S3 method for mic plot( x, + mo = NULL, + ab = NULL, + guideline = "EUCAST", main = paste("MIC values of", deparse(substitute(x))), ylab = "Frequency", xlab = "Minimum Inhibitory Concentration (mg/L)", - mo = NULL, - ab = NULL, - guideline = "EUCAST", colours_RSI = c("#ED553B", "#3CAEA3", "#F6D55C"), language = get_locale(), expand = TRUE, @@ -258,31 +258,14 @@ ) # S3 method for mic -ggplot( - data, - mapping = NULL, - title = paste("MIC values of", deparse(substitute(data))), - ylab = "Frequency", - xlab = "Minimum Inhibitory Concentration (mg/L)", +autplot( + object, mo = NULL, ab = NULL, guideline = "EUCAST", - colours_RSI = c("#ED553B", "#3CAEA3", "#F6D55C"), - language = get_locale(), - expand = TRUE, - ... -) - -# S3 method for mic -autoplot( - data, - mapping = NULL, - title = paste("MIC values of", deparse(substitute(data))), + title = paste("MIC values of", deparse(substitute(object))), ylab = "Frequency", xlab = "Minimum Inhibitory Concentration (mg/L)", - mo = NULL, - ab = NULL, - guideline = "EUCAST", colours_RSI = c("#ED553B", "#3CAEA3", "#F6D55C"), language = get_locale(), expand = TRUE, @@ -304,31 +287,14 @@ ... ) -# S3 method for disk -ggplot( - data, - mapping = NULL, - title = paste("Disk zones of", deparse(substitute(data))), - ylab = "Frequency", - xlab = "Disk diffusion diameter (mm)", - mo = NULL, - ab = NULL, - guideline = "EUCAST", - colours_RSI = c("#ED553B", "#3CAEA3", "#F6D55C"), - language = get_locale(), - expand = TRUE, - ... -) - # S3 method for disk autoplot( - data, - mapping = NULL, - title = paste("Disk zones of", deparse(substitute(data))), - ylab = "Frequency", - xlab = "Disk diffusion diameter (mm)", + object, mo = NULL, ab = NULL, + title = paste("Disk zones of", deparse(substitute(object))), + ylab = "Frequency", + xlab = "Disk diffusion diameter (mm)", guideline = "EUCAST", colours_RSI = c("#ED553B", "#3CAEA3", "#F6D55C"), language = get_locale(), @@ -345,23 +311,10 @@ ... ) -# S3 method for rsi -ggplot( - data, - mapping = NULL, - title = paste("Resistance Overview of", deparse(substitute(data))), - xlab = "Antimicrobial Interpretation", - ylab = "Frequency", - colours_RSI = c("#ED553B", "#3CAEA3", "#F6D55C"), - language = get_locale(), - ... -) - # S3 method for rsi autoplot( - data, - mapping = NULL, - title = paste("Resistance Overview of", deparse(substitute(data))), + object, + title = paste("Resistance Overview of", deparse(substitute(object))), xlab = "Antimicrobial Interpretation", ylab = "Frequency", colours_RSI = c("#ED553B", "#3CAEA3", "#F6D55C"), @@ -373,16 +326,8 @@
x, data | -MIC values created with |
- ||
---|---|---|---|
main, title | -title of the plot |
- ||
xlab, ylab | -axis title |
+ x, object | +|
mo | @@ -396,6 +341,14 @@guideline | interpretation guideline to use, defaults to the latest included EUCAST guideline, see Details |
|
main, title | +title of the plot |
+ ||
xlab, ylab | +axis title |
+ ||
colours_RSI | colours to use for filling in the bars, must be a vector of three values (in the order R, S and I). The default colours are colour-blind friendly. |
@@ -412,27 +365,22 @@
... | arguments passed on to |
mapping | -aesthetic mappings to use for |
-
The ggplot
functions return a ggplot
model that is extendible with any ggplot2
function.
The autoplot()
functions return a ggplot
model that is extendible with any ggplot2
function.
The interpretation of "I" will be named "Increased exposure" for all EUCAST guidelines since 2019, and will be named "Intermediate" in all other cases.
For interpreting MIC values as well as disk diffusion diameters, supported guidelines to be used as input for the guideline
argument are: "EUCAST 2021", "EUCAST 2020", "EUCAST 2019", "EUCAST 2018", "EUCAST 2017", "EUCAST 2016", "EUCAST 2015", "EUCAST 2014", "EUCAST 2013", "EUCAST 2012", "EUCAST 2011", "CLSI 2020", "CLSI 2019", "CLSI 2018", "CLSI 2017", "CLSI 2016", "CLSI 2015", "CLSI 2014", "CLSI 2013", "CLSI 2012", "CLSI 2011" and "CLSI 2010".
Simply using "CLSI"
or "EUCAST"
as input will automatically select the latest version of that guideline.
-The lifecycle of this function is stable. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided.
If the unlying code needs breaking changes, they will occur gradually. For example, a argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error.
+
+The lifecycle of this function is maturing. The unlying code of a maturing function has been roughed out, but finer details might still change. Since this function needs wider usage and more extensive testing, you are very welcome to suggest changes at our repository or write us an email (see section 'Contact Us').