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

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 = "Effect",
  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"
)

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.

Value

Invisibly returns the plotted data frame.

Examples

if (FALSE) { # \dontrun{
fit <- network_meta(
  data = nma_dat,
  study_id = "study",
  treatment_1 = "trt1",
  treatment_2 = "trt2",
  effect = "yi",
  variance = "vi"
)
network_forest_plot(fit, effect_type = "total", right_digits = 2)
} # }