geom_pub_stats_yang: geom_pub_stats_yang

View source: R/pub_bias_plot.R

geom_pub_stats_yangR Documentation

geom_pub_stats_yang

Description

This function adds a corrected meta-analytic mean, sensu Yang et al. 2023, confidence interval and text annotation to an intercept only orchard plot.

Usage

geom_pub_stats_yang(
  data,
  col = "red",
  plotadj = -0.05,
  textadj = 0.05,
  branch.size = 1.2,
  trunk.size = 3
)

Arguments

data

The data frame containing the corrected meta-analytic mean and confidence intervals.

col

The colour of the mean and confidence intervals.

plotadj

The adjustment to the x-axis position of the mean and confidence intervals.

textadj

The adjustment to the y-axis position of the mean and confidence intervals for the text displaying the type of correction.

branch.size

Size of the confidence intervals.

trunk.size

Size of the mean, or central point.

Value

A list of ggplot2 objects to be added to the orchard plot.

Author(s)

Daniel Noble - daniel.noble@anu.edu.au


daniel1noble/orchaRd documentation built on May 12, 2024, 7:46 a.m.