Skip to contents

Plot cumulative incidence and VE estimates across all evaluation time points.

Usage

# S3 method for class 'vefit'
plot(object, ci_type = NULL, color = "#0072B2")

Arguments

object

An object of class vefit created by nomatchVE() or matching_ve().

ci_type

Character string specifying the type of confidence interval bands to plot. One of "wald", "percentile", "simul", or "none". Must choose a ci_type whose lower and upper bounds are already computed in object$estimates component of object.

color

Aesthetic value to map data values to. Default: "#0072B2" (blue)

Value

a ggpplot2 object with line plot for each term (cumulative incidence, VE)

Details

For cumulative incidence panels, y-axis limits are shared across methods to facilitate comparison. The VE panel uses free y-axis scaling.