create_forest_plot | R Documentation |
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, ...)
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 |
A ggplot object
data(cachar_sample)
results <- calc_risk_diff(cachar_sample, "abnormal_screen", "areca_nut", strata = "residence")
create_forest_plot(results)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.