Learn R Programming

vICC (version 1.0.0)

plot.pip: Plot pip Objects

Description

Bar plot for the posterior inclusion probabilities, which corresponds to the probability that each group differs from the average within-group variance.

Usage

# S3 method for pip
plot(x, fill = "black", width = 0.5, ...)

Arguments

x

An object of class pip.

fill

Character string. Which color for the bars (defaults to black)?

width

Numeric. The width for the bars (defaults to 0.5).

...

Currently ignored

Value

A ggplot object.

Examples

Run this code
# NOT RUN {
# congruent trials
congruent <- subset(flanker, cond == 0)

# subset 25 from each group
dat <- congruent[unlist(tapply(1:nrow(congruent),
                            congruent$id,
                            head, 25)), ]
fit <- vicc(
  y  = dat$rt,
  group = dat$id,
  iter = 500,
  burnin = 10,
  type =  "pick_group"
)

pips <- pip(fit)

plot(pips)

# }

Run the code above in your browser using DataLab