plot_forest {psychmeta} | R Documentation |
Create forest plots
Description
Create forest plots
Usage
plot_forest(
ma_obj,
analyses = "all",
match = c("all", "any"),
case_sensitive = TRUE,
show_filtered = FALSE,
ma_facetname = "Summary",
facet_levels = NULL,
conf_level = NULL,
conf_method = NULL,
x_limits = NULL,
x_breaks = NULL,
x_lab = NULL,
y_lab = "Reference"
)
Arguments
ma_obj |
Meta-analysis object. |
analyses |
Which analyses to extract? Can be either |
match |
Should extracted meta-analyses match all (default) or any of the criteria given in |
case_sensitive |
Logical scalar that determines whether character values supplied in |
show_filtered |
Logical scalar that determines whether the meta-analysis object given in the output should be the modified input object ( |
ma_facetname |
Label to use for meta-analysis results in the |
facet_levels |
Order in which moderator levels should be displayed. |
conf_level |
Confidence level to define the width of the confidence interval. If |
conf_method |
Distribution to be used to compute confidence intervals (either |
x_limits |
Span of the X values to be plotted. |
x_breaks |
Breaks for the X values to be plotted. |
x_lab |
Label to use for the X axis. |
y_lab |
Label to use for the Y axis. |
Value
A list of forest plots.
Author(s)
Based on code by John Sakaluk
Examples
## Not run:
ma_obj <- ma_r(ma_method = "ic", rxyi = rxyi, n = n, rxx = rxxi, ryy = ryyi,
construct_x = x_name, construct_y = y_name, sample_id = sample_id,
moderators = moderator, data = data_r_meas_multi)
plot_forest(ma_obj = ma_obj)
plot_forest(ma_obj = ma_obj, analyses = list(pair_id = 2))
plot_forest(ma_obj = ma_obj, analyses = list(pair_id = 1), show_filtered = TRUE)
## d values
ma_obj <- ma_d(ma_method = "ic", d = d, n1 = n1, n2 = n2, ryy = ryyi,
construct_y = construct, sample_id = sample_id,
data = data_d_meas_multi)
plot_forest(ma_obj = ma_obj)
plot_forest(ma_obj = ma_obj, analyses = list(pair_id = 2))
plot_forest(ma_obj = ma_obj, analyses = list(pair_id = 1, analysis_id = 1), show_filtered = TRUE)
## End(Not run)