File: plot.BFBayesFactor.Rd

package info (click to toggle)
r-cran-bayesfactor 0.9.12-4.7%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,492 kB
  • sloc: cpp: 1,555; sh: 16; makefile: 7
file content (60 lines) | stat: -rw-r--r-- 1,690 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot-BFBayesFactor.R
\name{plot.BFBayesFactor}
\alias{plot.BFBayesFactor}
\title{Plot a Bayes factor object}
\usage{
\method{plot}{BFBayesFactor}(
  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,
  ...
)
}
\arguments{
\item{x}{a BFBayesFactor object}

\item{include1}{if \code{TRUE}, ensure that Bayes factor = 1 is on the plot}

\item{addDenom}{if \code{TRUE}, add the denominator model into the group}

\item{sortbf}{sort the Bayes factors before plotting them? Defaults to
\code{TRUE}}

\item{logbase}{the base of the log Bayes factors in the plot}

\item{marginExpand}{an expansion factor for the left margin, in case more
space is needed for model names}

\item{cols}{a vector of length two of valid color names or numbers}

\item{main}{a character vector for the plot title}

\item{pars}{a list of par() settings}

\item{...}{additional arguments to pass to barplot()}
}
\description{
Plot a Bayes factor object
}
\details{
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.
}
\examples{
data(puzzles)

bfs = anovaBF(RT ~ shape*color + ID, data = puzzles, whichRandom="ID", progress=FALSE)
plot(bfs)
}
\author{
Richard D. Morey (\email{richarddmorey@gmail.com})
}