plot.summary.var_estimate: Plot 'summary.var_estimate' Objects

Description Usage Arguments Value Examples

View source: R/var_estimate.R

Description

Visualize the posterior distributions of each partial correlation and regression coefficient.

Usage

1
2
## S3 method for class 'summary.var_estimate'
plot(x, color = "black", size = 2, width = 0, param = "all", order = TRUE, ...)

Arguments

x

An object of class summary.var_estimate

color

Character string. The color for the error bars. (defaults to "black").

size

Numeric. The size for the points (defaults to 2).

width

Numeric. The width of error bar ends (defaults to 0).

param

Character string. Which parameters should be plotted ? The options are pcor, beta, or all (default).

order

Logical. Should the relations be ordered by size (defaults to TRUE) ?

...

Currently ignored

Value

A list of ggplot objects.

Examples

1
2
3
4
5
6
7
8
# data
Y <- subset(ifit, id == 1)[,-1]

# fit model with alias (var_estimate also works)
fit <- var_estimate(Y, progress = FALSE)

plts <- plot(summary(fit))
plts$pcor_plt

BGGM documentation built on Aug. 20, 2021, 5:08 p.m.