Barplot method for summary.seroincidence.by objects

Description

Barplot method for summary.seroincidence.by objects

Usage

strat_ests_barplot(
  object,
  yvar,
  color_var = NULL,
  alpha = 0.7,
  CIs = FALSE,
  title = NULL,
  xlab = "Seroincidence rate per 1000 person-years",
  ylab = yvar,
  fill_lab = NULL,
  color_palette = NULL,
  ...
)

Arguments

object a summary.seroincidence.by object (generated by applying the summary() method to the output of est_seroincidence_by()).
yvar the name of a stratifying variable in object.
color_var character the name of the fill color variable (e.g., "Country").
alpha transparency for the bars (1 = no transparency, 0 = fully transparent).
CIs logical, if TRUE, add CI error bars.
title a title for the final plot.
xlab a label for the x-axis of the final plot.
ylab a label for the y-axis of the final plot.
fill_lab fill label.
color_palette optional color palette for bar color.
unused.

Value

a ggplot2::ggplot() object.