create_forest_plot {riskdiff}R 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)


[Package riskdiff version 0.2.1 Index]