MDRPlot: Plotting the percentage of each MDR, XDR, PDR category.

Description Usage Arguments Value Examples

View source: R/MDRCategoryPlot.R

Description

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.

Usage

1
MDRPlot(dataframe)

Arguments

dataframe

A dataframe that contains all sample IDs and their MDR categories.

Value

Returns a histogram.

Examples

1
2
3
4
5
# Examples 1:
# plot the percentage
x <- classifyAllMDR(drug_resistance = DrugResistance[1:100,],
                               antimicrobial_agents = 'Antimicrobial.Agent')
MDRPlot(x)

Cloris2000/MDRClassifier documentation built on Dec. 17, 2021, 2:06 p.m.