Utility function to do forest plot from data.frame with effect estimates.

plot_mtc_forest(
  x,
  sort.by = c("name", "effect")[1],
  lab = NULL,
  do.log = TRUE,
  breaks = c(0.25, 0.5, 0.8, 1, 1.25, 2, 4)
)

Arguments

x

A data.frame with columns: Comparator, Med, CIlo, CIup.

sort.by

Character string defining how estimates are sorted, either "name" (the default) or "effect".

lab

Label to plot underneath x-axis.

do.log

Logical, whether log transformed x-axis or not (default = TRUE).

breaks

Where to put x-axis breaks and labels.

Value

A ggplot2 plot object which