bhai.strataplot: Stratified barplot of cases, deaths and DALYs.

Description Usage Arguments See Also Examples

View source: R/plotting.R

Description

Stratified barplot of cases, deaths and DALYs.

Usage

1
bhai.strataplot(pps, infection, what, col=NULL, errors=TRUE, lwd.errors=2, xlab=NULL, ...)

Arguments

pps

The PPS object containing the data.

infection

Infection to be plotted.

what

One of c("Cases", "Deaths", "DALY")

col

Color used to fill the bars.

errors

Specifying whether error bars should be plotted, default: TRUE.

lwd.errors

Line width of error bars.

xlab

X-axis labels.

...

Further plotting arguments

See Also

PPS

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
 
data(german_pps_2011_repr)
german_pps_repr = PPS(num_hai_patients = num_hai_patients,
    num_hai_patients_by_stratum = num_hai_patients_by_stratum,
    num_hai_patients_by_stratum_prior = num_hai_patients_by_stratum_prior,
    num_survey_patients = num_survey_patients,
    length_of_stay = length_of_stay,
    loi_pps = loi_pps,
    mccabe_scores_distr = mccabe_scores_distr,
    mccabe_life_exp = mccabe_life_exp,
    hospital_discharges = hospital_discharges,
    population = population,
    country="Germany (representative sample)")
german_pps_repr

set.seed(3)
# The following example is run only for illustratory reasons
# Note that you should never run the function with only 10 Monte-Carlo simulations in practice!
result = bhai(german_pps_repr, nsim=10)
bhai.strataplot(pps=result, infection="HAP", what="Cases")

BHAI documentation built on Oct. 6, 2019, 5:04 p.m.

Related to bhai.strataplot in BHAI...