plotExacerbations: Creates bar graph comparing no treatment with azithromycin treatment
Description
Creates bar graph comparing no treatment with azithromycin treatment
Usage
plotExacerbations(
patientResults,
type = "rate",
interval = "PI",
colors = c("#007bff", "rgb(204,204,204)")
)
Arguments
- 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
Examples
Run this coderesults <- accept1(samplePatients[1,])
plotExacerbations(results)
Run the code above in your browser using DataLab