plot.bayeslincom: Perform a linear combination of posterior samples

Description Usage Arguments Value Examples

View source: R/plot.R

Description

Perform 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
Y <- BGGM::ptsd
colnames(Y) <- letters[1:20]
est <- BGGM::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 March 19, 2021, 6:52 p.m.