plotExacerbations | R Documentation |
Creates bar graph comparing no treatment with azithromycin treatment
plotExacerbations( patientResults, type = "rate", interval = "PI", colors = c("#007bff", "rgb(204,204,204)") )
patientResults |
patient results vector, produced by accept. |
type |
string: either "probability" or "rate" |
interval |
string: either "CI" or "PI" PI = Predicted Interval CI = Confidence Interval |
colors |
vector: a vector of colors to be used in the graph must be length 2 can use hexadecimal, rgb, or R color codes |
a bar graph
results <- accept1(samplePatients[1,]) plotExacerbations(results)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.