plot.bayeslincom: Plot a linear combination of posterior samples

Description Usage Arguments Value Examples

View source: R/plot.R

Description

Plot a linear combination of posterior samples

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## S3 method for class 'bayeslincom'
plot(
  x,
  point_col = "black",
  hist_col = "black",
  hist_fill = "gray",
  bar_col = "steelblue",
  bins = 30,
  display_comb_strings = TRUE,
  ...
)

Arguments

x

An object of class bayeslincom

point_col

Color for point indicating mean of posterior

hist_col

Color for histogram edges

hist_fill

Color for histogram bars

bar_col

Color of bar for credible interval

bins

Number of bins

display_comb_strings

If TRUE, displays full strings for combinations in ggplot facets when there is more than one combination in x

...

Currently ignored

Value

An object of class ggplot

Examples

1
2
3
4
5
6
7
8
9
if (require(BGGM)) library(BGGM)
Y <- ptsd
colnames(Y) <- letters[1:20]
est <- estimate(Y)
bggm_comb <- lin_comb("a--c + a--d > b--c + b--d",
                      obj = est,
                      ci = 0.90,
                      rope = c(-0.1, 0.1))
plot(bggm_comb)

josue-rodriguez/bayeslincom documentation built on Sept. 8, 2021, 4:30 p.m.