ggbootPW: Pair-wise comparisons plot

View source: R/ggbootPW.R

ggbootPWR Documentation

Pair-wise comparisons plot

Description

Plot the estimates or maximum Bayes factors (MBFs) pair-wise comparisons in terms of a summary statistic between all levels of a factor. BCa bootstrapping is used to obtain the maximum Bayes factor.

Usage

ggbootPW(data, resp, group, facet = NULL, B = 100, seB = 10,
  calcStat = "mean", trim = 0.2, fdr = NULL, minEff = 0,
  groupLabVec = NULL, facetLabVec = NULL, axisLab = NULL, ncol = 2,
  facetOrderVec = NULL, rotX = FALSE, method = "percT",
  facetScale = "fixed", text = TRUE, textSize = 3, plotTblName = NULL,
  plot = TRUE, fillLabVec = NULL, fillColVec = NULL, sort = TRUE)

Arguments

data

dataframe. Has one row per observation and the column names specified below.

resp

unquoted expression. Response variable name.

group

unquoted expression. Group variable name.

facet

unquoted expression. Facet variable name.

B

integer. Number of bootstrap repetitions. If greater than 0, the plot displays the MBF rather than the estimate of the difference. If 0, then no bootstrapping is performed and the sample values for calcStat are displayed.

calcStat

function olr character. Bootstrap statistic function. Functions other than mean or median used at own risk.

fdr

numeric. False discovery rate.

minEff

numeric. Minimum effect size. Default is 0.

groupLabVec

named character vector. Labels for grouping vector. Optional.

axisLab

character. X- and y-axis titles.

ncol

integer. Number of facet variable columns.

rotX

logical. If TRUE, x-axis titles are rotated 90 degrees.

facetScale

'fixed' or 'free'. Input for scale argument of ggboot::facet_wrap. Forced to 'free' if sort=TRUE.

text

logical. If TRUE, the difference estimates or MBFs are written over each grid point.

textSize

numeric. Size of text.

plotTblName

character. If not NULL, then the dataframe used to plot is saved to global environment with name plotTblName.

plot

logical. If TRUE, then a plot is outputted.

scale

logical. Whether to sort x- and y-axes text by size of response. Default is TRUE.


MiguelRodo/ggboot documentation built on Nov. 9, 2023, 5:45 p.m.