Learn R Programming

BGGM (version 2.1.5)

plot.summary.var_estimate: Plot summary.var_estimate Objects

Description

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

Usage

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

Value

A list of ggplot objects.

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

Examples

Run this code
# \donttest{

# 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
# }

Run the code above in your browser using DataLab