Commit fdafa74
authored
spec: add forest-basic specification (#2381)
## New Specification: `forest-basic`
Related to #2378
---
### specification.md
# forest-basic: Meta-Analysis Forest Plot
## Description
A forest plot displays effect sizes with confidence intervals from
multiple studies in a meta-analysis. Each study is represented as a
point estimate with horizontal whiskers showing the confidence interval,
and a diamond at the bottom shows the pooled estimate. The plot includes
a vertical reference line at the null effect (typically 0 or 1), making
it easy to assess statistical significance and heterogeneity across
studies.
## Applications
- Summarizing results from systematic reviews in medical research
- Comparing treatment effects across multiple clinical trials
- Visualizing heterogeneity and consistency of findings across studies
- Presenting pooled effect estimates with confidence intervals
## Data
- `study` (str) - Study name or identifier
- `effect_size` (float) - Point estimate of the effect (e.g., odds
ratio, risk ratio, mean difference)
- `ci_lower` (float) - Lower bound of the confidence interval
- `ci_upper` (float) - Upper bound of the confidence interval
- `weight` (float, optional) - Study weight for visual sizing of markers
- Size: 5-30 studies
- Example: Meta-analysis of randomized controlled trials comparing
treatment vs control
## Notes
- Diamond shape for the pooled/overall estimate at the bottom
- Vertical reference line at null effect (0 for mean difference, 1 for
ratios)
- Marker size proportional to study weight when provided
- Studies typically ordered by effect size or chronologically
- Clear axis labels showing the effect measure and scale
---
**Next:** Add `approved` label to the issue to merge this PR.
---
:robot: *[spec-create
workflow](https://github.com/MarkusNeusinger/pyplots/actions/runs/20543221935)*
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>1 parent 723ba9a commit fdafa74
2 files changed
Lines changed: 60 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
0 commit comments