<p>Functions to plot classes <code>rsi</code>, <code>mic</code> and <code>disk</code>, with support for base <spanstyle="R">R</span> and <code>ggplot2</code>.</p>
main <spanclass='op'>=</span><spanclass='fu'><ahref='https://rdrr.io/r/base/paste.html'>paste</a></span><spanclass='op'>(</span><spanclass='st'>"MIC values of"</span>, <spanclass='fu'><ahref='https://rdrr.io/r/base/deparse.html'>deparse</a></span><spanclass='op'>(</span><spanclass='fu'><ahref='https://rdrr.io/r/base/substitute.html'>substitute</a></span><spanclass='op'>(</span><spanclass='va'>x</span><spanclass='op'>)</span><spanclass='op'>)</span><spanclass='op'>)</span>,
title <spanclass='op'>=</span><spanclass='fu'><ahref='https://rdrr.io/r/base/paste.html'>paste</a></span><spanclass='op'>(</span><spanclass='st'>"MIC values of"</span>, <spanclass='fu'><ahref='https://rdrr.io/r/base/deparse.html'>deparse</a></span><spanclass='op'>(</span><spanclass='fu'><ahref='https://rdrr.io/r/base/substitute.html'>substitute</a></span><spanclass='op'>(</span><spanclass='va'>data</span><spanclass='op'>)</span><spanclass='op'>)</span><spanclass='op'>)</span>,
title <spanclass='op'>=</span><spanclass='fu'><ahref='https://rdrr.io/r/base/paste.html'>paste</a></span><spanclass='op'>(</span><spanclass='st'>"MIC values of"</span>, <spanclass='fu'><ahref='https://rdrr.io/r/base/deparse.html'>deparse</a></span><spanclass='op'>(</span><spanclass='fu'><ahref='https://rdrr.io/r/base/substitute.html'>substitute</a></span><spanclass='op'>(</span><spanclass='va'>data</span><spanclass='op'>)</span><spanclass='op'>)</span><spanclass='op'>)</span>,
main <spanclass='op'>=</span><spanclass='fu'><ahref='https://rdrr.io/r/base/paste.html'>paste</a></span><spanclass='op'>(</span><spanclass='st'>"Disk zones of"</span>, <spanclass='fu'><ahref='https://rdrr.io/r/base/deparse.html'>deparse</a></span><spanclass='op'>(</span><spanclass='fu'><ahref='https://rdrr.io/r/base/substitute.html'>substitute</a></span><spanclass='op'>(</span><spanclass='va'>x</span><spanclass='op'>)</span><spanclass='op'>)</span><spanclass='op'>)</span>,
title <spanclass='op'>=</span><spanclass='fu'><ahref='https://rdrr.io/r/base/paste.html'>paste</a></span><spanclass='op'>(</span><spanclass='st'>"Disk zones of"</span>, <spanclass='fu'><ahref='https://rdrr.io/r/base/deparse.html'>deparse</a></span><spanclass='op'>(</span><spanclass='fu'><ahref='https://rdrr.io/r/base/substitute.html'>substitute</a></span><spanclass='op'>(</span><spanclass='va'>data</span><spanclass='op'>)</span><spanclass='op'>)</span><spanclass='op'>)</span>,
title <spanclass='op'>=</span><spanclass='fu'><ahref='https://rdrr.io/r/base/paste.html'>paste</a></span><spanclass='op'>(</span><spanclass='st'>"Disk zones of"</span>, <spanclass='fu'><ahref='https://rdrr.io/r/base/deparse.html'>deparse</a></span><spanclass='op'>(</span><spanclass='fu'><ahref='https://rdrr.io/r/base/substitute.html'>substitute</a></span><spanclass='op'>(</span><spanclass='va'>data</span><spanclass='op'>)</span><spanclass='op'>)</span><spanclass='op'>)</span>,
main <spanclass='op'>=</span><spanclass='fu'><ahref='https://rdrr.io/r/base/paste.html'>paste</a></span><spanclass='op'>(</span><spanclass='st'>"Resistance Overview of"</span>, <spanclass='fu'><ahref='https://rdrr.io/r/base/deparse.html'>deparse</a></span><spanclass='op'>(</span><spanclass='fu'><ahref='https://rdrr.io/r/base/substitute.html'>substitute</a></span><spanclass='op'>(</span><spanclass='va'>x</span><spanclass='op'>)</span><spanclass='op'>)</span><spanclass='op'>)</span>,
title <spanclass='op'>=</span><spanclass='fu'><ahref='https://rdrr.io/r/base/paste.html'>paste</a></span><spanclass='op'>(</span><spanclass='st'>"Resistance Overview of"</span>, <spanclass='fu'><ahref='https://rdrr.io/r/base/deparse.html'>deparse</a></span><spanclass='op'>(</span><spanclass='fu'><ahref='https://rdrr.io/r/base/substitute.html'>substitute</a></span><spanclass='op'>(</span><spanclass='va'>data</span><spanclass='op'>)</span><spanclass='op'>)</span><spanclass='op'>)</span>,
title <spanclass='op'>=</span><spanclass='fu'><ahref='https://rdrr.io/r/base/paste.html'>paste</a></span><spanclass='op'>(</span><spanclass='st'>"Resistance Overview of"</span>, <spanclass='fu'><ahref='https://rdrr.io/r/base/deparse.html'>deparse</a></span><spanclass='op'>(</span><spanclass='fu'><ahref='https://rdrr.io/r/base/substitute.html'>substitute</a></span><spanclass='op'>(</span><spanclass='va'>data</span><spanclass='op'>)</span><spanclass='op'>)</span><spanclass='op'>)</span>,
<td><p>MIC values created with <code><ahref='as.mic.html'>as.mic()</a></code> or disk diffusion values created with <code><ahref='as.disk.html'>as.disk()</a></code></p></td>
<td><p>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.</p></td>
<td><p>language to be used to translate 'Susceptible', 'Increased exposure'/'Intermediate' and 'Resistant', defaults to system language (see <code><ahref='translate.html'>get_locale()</a></code>) and can be overwritten by setting the option <code>AMR_locale</code>, e.g. <code><ahref='https://rdrr.io/r/base/options.html'>options(AMR_locale = "de")</a></code>, see <ahref='translate.html'>translate</a>. Use <code>language = NULL</code> or <code>language = ""</code> to prevent translation.</p></td>
<td><p>a <ahref='https://rdrr.io/r/base/logical.html'>logical</a> to indicate whether the range on the x axis should be expanded between the lowest and highest value. For MIC values, intermediate values will be factors of 2 starting from the highest MIC value. For disk diameters, the whole diameter range will be filled.</p></td>
<p>The <code>ggplot</code> functions return a <code><ahref='https://ggplot2.tidyverse.org/reference/ggplot.html'>ggplot</a></code> model that is extendible with any <code>ggplot2</code> function.</p>
<p>The interpretation of "I" will be named "Increased exposure" for all EUCAST guidelines since 2019, and will be named "Intermediate" in all other cases.</p>
The <ahref='lifecycle.html'>lifecycle</a> of this function is <strong>stable</strong>. 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.</p>
<p>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.</p>
<p>On our website <ahref='https://msberends.github.io/AMR/'>https://msberends.github.io/AMR/</a> you can find <ahref='https://msberends.github.io/AMR/articles/AMR.html'>a comprehensive tutorial</a> about how to conduct AMR data analysis, the <ahref='https://msberends.github.io/AMR/reference/'>complete documentation of all functions</a> and <ahref='https://msberends.github.io/AMR/articles/WHONET.html'>an example analysis using WHONET data</a>.</p>
<spanclass='va'>some_disk_values</span><spanclass='op'><-</span><spanclass='fu'><ahref='random.html'>random_disk</a></span><spanclass='op'>(</span>size <spanclass='op'>=</span><spanclass='fl'>100</span>, mo <spanclass='op'>=</span><spanclass='st'>"Escherichia coli"</span>, ab <spanclass='op'>=</span><spanclass='st'>"cipro"</span><spanclass='op'>)</span>
<spanclass='co'># when providing the microorganism and antibiotic, colours will show interpretations:</span>
<spanclass='fu'>plot</span><spanclass='op'>(</span><spanclass='va'>some_mic_values</span>, mo <spanclass='op'>=</span><spanclass='st'>"S. aureus"</span>, ab <spanclass='op'>=</span><spanclass='st'>"ampicillin"</span><spanclass='op'>)</span>
<spanclass='fu'>plot</span><spanclass='op'>(</span><spanclass='va'>some_disk_values</span>, mo <spanclass='op'>=</span><spanclass='st'>"Escherichia coli"</span>, ab <spanclass='op'>=</span><spanclass='st'>"cipro"</span><spanclass='op'>)</span>
<spanclass='fu'><ahref='https://ggplot2.tidyverse.org/reference/ggplot.html'>ggplot</a></span><spanclass='op'>(</span><spanclass='va'>some_disk_values</span>, mo <spanclass='op'>=</span><spanclass='st'>"Escherichia coli"</span>, ab <spanclass='op'>=</span><spanclass='st'>"cipro"</span><spanclass='op'>)</span>
<p>Developed by <ahref='https://www.rug.nl/staff/m.s.berends/'>Matthijs S. Berends</a>, <ahref='https://www.rug.nl/staff/c.f.luz/'>Christian F. Luz</a>, <ahref='https://www.rug.nl/staff/a.w.friedrich/'>Alexander W. Friedrich</a>, <ahref='https://www.rug.nl/staff/b.sinha/'>Bhanu N. M. Sinha</a>, <ahref='https://www.rug.nl/staff/c.j.albers/'>Casper J. Albers</a>, <ahref='https://www.rug.nl/staff/c.glasner/'>Corinna Glasner</a>.</p>