Skip to contents

Draws a forest plot for one effect type from a fitted network_meta object.

Usage

network_forest_plot(
  nma_object,
  effect_type = c("total", "direct", "indirect"),
  ci_level = 0.95,
  order_by = c("effect", "abs_effect", "comparison"),
  decreasing = FALSE,
  xlab = NULL,
  main = NULL,
  ref_line = 0,
  point_col = "#0B1F3A",
  ci_col = "#2E5A88",
  ci_lty = 1,
  ci_lwd = 2,
  point_pch = 19,
  point_cex = 1,
  label_cex = 0.8,
  right_digits = 3,
  right_header = NULL,
  ref_col = "gray55",
  main_adj = 0.5,
  main_line = NULL,
  strata = NULL,
  facet = TRUE,
  prediction = FALSE,
  benefit_direction = NULL,
  label_width = 32,
  comparisons = c("all", "reference")
)

Arguments

nma_object

A fitted object returned by network_meta.

effect_type

One of "total", "direct", or "indirect".

ci_level

Confidence level for interval bounds. Defaults to 0.95.

order_by

Ordering rule for rows. One of "effect", "abs_effect", or "comparison".

decreasing

Logical; whether to reverse the selected order.

xlab

Label for x-axis.

main

Optional title. If NULL, an automatic title is used.

ref_line

Vertical reference line location. Defaults to 0.

point_col

Point color.

ci_col

Confidence interval line color.

ci_lty

Confidence interval line type.

ci_lwd

Confidence interval line width.

point_pch

Point symbol.

point_cex

Point size scaling.

label_cex

Label size scaling.

right_digits

Number of digits shown in right-side labels.

right_header

Optional header shown above the right-side CI label column. If NULL, a header is built from ci_level.

ref_col

Color of the vertical reference line.

main_adj

Horizontal title alignment in [0, 1].

main_line

Optional title line. If NULL, default is used.

strata

Named list selecting fitted outcome/time values.

facet

Draw separate panels for outcome/time strata; otherwise include strata in labels.

prediction

Add dashed prediction intervals for total effects.

benefit_direction

Optional higher or lower interpretation for axis labels.

label_width

Approximate character width for wrapping comparison labels.

comparisons

all (default) displays all stored pairs; reference displays each treatment minus the fitted reference. Estimates and interval endpoints are reoriented together; fitted data and test families are unchanged.

Value

Invisibly returns the plotted data frame.

Details

Intervals are recalculated at the requested confidence level using the fitted contrast degrees of freedom. Missing evidence is labelled explicitly. Facets share a horizontal scale. Increase export height for multiple panels.

Examples

# \donttest{
network_forest_plot(nma_fit, effect_type = "total")

# }