Description Usage Arguments Value Examples
View source: R/MDRCategoryPlot.R
A function that takes in a list of dataframes and convert the antimicrobial resistance level to three categories: MDR, XDR, and PDR. The barplot indicates the percentage of MDR, XDR, and PDR isolates in the data.
1 | MDRPlot(dataframe)
|
dataframe |
A dataframe that contains all sample IDs and their MDR categories. |
Returns a histogram.
1 2 3 4 5 | # Examples 1:
# plot the percentage
x <- classifyAllMDR(drug_resistance = DrugResistance[1:100,],
antimicrobial_agents = 'Antimicrobial.Agent')
MDRPlot(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.