inference_plot: inference_plot

View source: R/inference_plot.R

inference_plotR Documentation

inference_plot

Description

Function for plotting the multiverse results.

Usage

inference_plot(
  data,
  alpha_level = 0.05,
  add_line = TRUE,
  na.rm = FALSE,
  framework = "Both",
  col = c("gray45", "maroon4", "brown1"),
  return_plot = TRUE
)

Arguments

data

a data frame with the results of a multiverse analysis

alpha_level

What should be the alpha level used (default to 0.05)

add_line

Whether to add a line with the alpha level in the produced histogram (default to TRUE)

na.rm

Should NA's be removed (default to FALSE). See details for more information

framework

Inference framework. Values could be "NHST", "Bayesian", or "Both" (no case sensitivity)

col

A length three vector with the colors to be used for ANOVAS, t-tests, and mixed models (in this order)

return_plot

Whether to return a plot or not (default too TRUE)

Details

For the plot the NAs in the p.value column are removed automatically – so what ggplot2 does automatically but here no message is returned.

The return_plot argument is there in case you want to combine multiple panels and you do not want to have a plot returned every time you run the code.

Value

A histogram summarizing the results.


multifear documentation built on Sept. 24, 2023, 1:06 a.m.