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 <- data.frame(Sample_ID = c("1","2","3","4","5","6"),
Category = c("MDR", "PDR", "NULL", "XDR", "PDR", "NULL"))
MDRPlot(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.