order_forest_data: Order forest plot data by risk and factor levels

View source: R/main.R

order_forest_dataR Documentation

Order forest plot data by risk and factor levels

Description

Orders variables by their maximum estimate (descending) and levels within variables by their original order, with reference levels first.

Usage

order_forest_data(tab)

Arguments

tab

data frame prepared by prepare_forest_data

Details

When both Adjusted and Unadjusted rows are present, ordering is determined by the Adjusted estimates. When only Unadjusted rows are present (e.g., from forestplotUV), ordering uses those estimates directly.


reportRmd documentation built on March 20, 2026, 5:06 p.m.