create_forest_plot: Create Forest Plot for Risk Difference Results

View source: R/formatting.R

create_forest_plotR Documentation

Create Forest Plot for Risk Difference Results

Description

Creates a forest plot visualization of risk difference results, automatically detecting stratification variables and creating appropriate labels.

Usage

create_forest_plot(results, title = "Risk Differences", max_ci_width = 50, ...)

Arguments

results

Results tibble from calc_risk_diff()

title

Plot title (default: "Risk Differences")

max_ci_width

Maximum CI width for display (default: 50)

...

Additional arguments passed to ggplot

Value

A ggplot object

Examples

data(cachar_sample)
results <- calc_risk_diff(cachar_sample, "abnormal_screen", "areca_nut", strata = "residence")
create_forest_plot(results)


riskdiff documentation built on June 30, 2025, 9:07 a.m.