plot.model_graph {modelbpp} | R Documentation |
Plot a network of models
generated by model_graph()
.
## S3 method for class 'model_graph'
plot(x, ...)
x |
The output of
|
... |
Additional arguments,
passed to the |
This function is the plot
method of model_graph
objects,
the output of
model_graph()
.
For now, it simply passes the object
to plot
-method of an igraph
object.
This function
is created for possible customization
of the plot in the future.
NULL
. Called for its
side effect.
library(lavaan)
dat <- dat_path_model
mod <-
"
x3 ~ a*x1 + b*x2
x4 ~ a*x1
ab := a*b
"
fit <- sem(mod, dat_path_model, fixed.x = TRUE)
out <- model_set(fit)
out
g <- model_graph(out)
plot(g)