plotExacerbations: Creates bar graph comparing no treatment with azithromycin...

Description Usage Arguments Value Examples

View source: R/charts.R

Description

Creates bar graph comparing no treatment with azithromycin treatment

Usage

1
2
plotExacerbations(patientResults, type = "rate", interval = "CI",
  colors = c("#007bff", "rgb(204,204,204)"))

Arguments

patientResults

patient results vector, produced by predictAccept.

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

Value

a bar graph

Examples

1
2
results <- predictACCEPT(samplePatients[1,], random_distribution_iteration = 5000)
plotExacerbations(results)

resplab/accept documentation built on Aug. 11, 2019, 1:40 a.m.