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 <- data.frame(Sample_ID = c("1","2","3","4","5","6"),
                Category = c("MDR", "PDR", "NULL", "XDR", "PDR", "NULL"))
MDRPlot(x)

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