View source: R/inference_plot.R
inference_plot | R Documentation |
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
)
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 |
na.rm |
Should NA's be removed (default to |
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) |
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.
A histogram summarizing the results.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.