Function for plotting the multiverse results.
inference_plot(
data,
alpha_level = 0.05,
add_line = TRUE,
na.rm = FALSE,
framework = "Both",
col = c("gray45", "maroon4", "brown1"),
return_plot = TRUE
)A histogram summarizing the results.
a data frame with the results of a multiverse analysis
What should be the alpha level used (default to 0.05)
Whether to add a line with the alpha level in the produced histogram (default to TRUE)
Should NA's be removed (default to FALSE). See details for more information
Inference framework. Values could be "NHST", "Bayesian", or "Both" (no case sensitivity)
A length three vector with the colors to be used for ANOVAS, t-tests, and mixed models (in this order)
Whether to return a plot or not (default too TRUE)
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.