meta_pcurve: P-curve plot with ggplot2

View source: R/meta.R

meta_pcurveR Documentation

P-curve plot with ggplot2

Description

Makes a pretty p-curve plot using ggplot2.

Usage

meta_pcurve(
  .analysis,
  p_cutoff = 0.05,
  print_plot = T,
  binom_method = "exact",
  text_pos = "tl"
)

Arguments

.analysis

(rma object) The rma analysis from metafor.

p_cutoff

(num) P-value cutoff to use.

print_plot

(lgl) Print the plot?

binom_method

(chr) Which method to use to calculate binomial p-value.

Examples

library(metafor)
data(european_ancestry)
meta = rma(european_ancestry$r, sei = european_ancestry$SE_r)
meta_pcurve(meta)

Deleetdk/kirkegaard documentation built on April 22, 2024, 5:22 p.m.