bhai.barplot {BHAI}R Documentation

Barplot of cases, deaths and DALYs.

Description

Barplot of cases, deaths and DALYs.

Usage

bhai.barplot(..., what, infections=NULL, cols1=NULL, cols2=NULL, ylab=NULL, ylim=NULL, 
legend_labs=NULL, main="", names.inf=TRUE, cex.names=1, border=par("fg"), lwd.errors=2)

Arguments

...

Further plotting arguments

what

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

infections

If sepcified only a subset of infections in bhai_summary is plotted.

cols1

Color used to fill the bars.

cols2

Specifies colors of YLDs when plotting DALYs.

ylab

Y-axis labels.

ylim

Limits of y-axis.

legend_labs

Labels of legend.

main

Title of plot

names.inf

Specifying whether names of infections should be plotted.

cex.names

Font size of labels.

border

The color to be used for the border of the bars, default: par("fg").

lwd.errors

Line width of error bars.

See Also

PPS

Examples


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_ger = bhai(german_pps_repr, nsim=10)

bhai.barplot(result_ger, what="Cases")


[Package BHAI version 0.99.2 Index]