deft_show: Show deft result

Description Usage Arguments Value Author(s) Examples

View source: R/deft_show.R

Description

Show deft result

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
deft_show(
  deft,
  element,
  study_labels = NULL,
  headings = list(study = ifelse(element == "all", "Study-subgroup", "Study"), n = "N",
    measure = NULL, ci = "HR (95% CI)"),
  trans = base::exp,
  show_model = ifelse(element == "all", FALSE, TRUE),
  show_stats = list(`I^2` = rlang::quo(sprintf("%0.1f%%", I2)), p =
    rlang::quo(format.pval(QEp, digits = 2))),
  ...
)

Arguments

deft

result from deft_do.

element

'all' or 'subgroup'.

study_labels

labels for studies.

headings

a list for controlling plot headings.

trans

an optional transform function used on the numeric data for plotting the axes

show_model

a logical value, if TRUE, show model result, otherwise only show forest plots for studies

show_stats

a list of stats to show at the bottom of the forest plot for e.g. heterogeneity

...

other arguments except 'panels', 'trans', 'study_labels', and 'show_stats' passed to forestmodel::forest_rma().

Value

a ggplot object

Author(s)

ShixiangWang w_shixiang@163.com

Examples

1
2
3
4
5
6
7
8
data("wang2019")
res <- deft_do(wang2019, group_level = c("Male", "Female"))

p1 <- deft_show(res, "all")
p1

p2 <- deft_show(res, "subgroup")
p2

metawho documentation built on Dec. 6, 2019, 5:09 p.m.