Plot a Bayes factor object
Plot a Bayes factor object
## S3 method for class 'BFBayesFactor' plot(x, include1 = TRUE, addDenom = FALSE, sortbf = TRUE, logbase = c("log10", "log2", "ln"), marginExpand = 0.4, cols = c("wheat", "lightslateblue"), main = paste("vs.", x@denominator@longName), pars = NULL, ...)
x |
a BFBayesFactor object |
include1 |
if |
addDenom |
if |
sortbf |
sort the Bayes factors before plotting them? Defaults to
|
logbase |
the base of the log Bayes factors in the plot |
marginExpand |
an expansion factor for the left margin, in case more space is needed for model names |
cols |
a vector of length two of valid color names or numbers |
main |
a character vector for the plot title |
pars |
a list of par() settings |
... |
additional arguments to pass to barplot() |
This function creates a barplot of the (log) Bayes factors in a Bayes factor object. Error bars are added (though in many cases they may be too small to see) in red to show the error in estimation of the Bayes factor. If a red question mark appears next to a bar, then that Bayes factor has no error estimate available.
Richard D. Morey (richarddmorey@gmail.com)
data(puzzles) bfs = anovaBF(RT ~ shape*color + ID, data = puzzles, whichRandom="ID", progress=FALSE) plot(bfs)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.