grouped_barchart.RdGrouped Bar Chart
grouped_barchart(data, xvar, yvar, groupvar, chartcolors)dataframe input data
value x-axis variable
value y-axis variable
Factor group variable
vector a vector of colors, the same number of levels as
the group variable
a ggplot object
grouped_barchart(
data = comorbidities, xvar = "Comorbidities",
yvar = "Prevalence", groupvar = "Severity",
chartcolors = colfun()$fig4_colors
)