powered by
Creates a forest plot visualization of risk difference results, automatically detecting stratification variables and creating appropriate labels.
create_forest_plot(results, title = "Risk Differences", max_ci_width = 50, ...)
A ggplot object
Results tibble from calc_risk_diff()
Plot title (default: "Risk Differences")
Maximum CI width for display (default: 50)
Additional arguments passed to ggplot
data(cachar_sample) results <- calc_risk_diff(cachar_sample, "abnormal_screen", "areca_nut", strata = "residence") create_forest_plot(results)
Run the code above in your browser using DataLab