Plots lavaan path model with DiagrammeR
Usage
lavaanPlot2(
model,
labels = NULL,
include = NULL,
gr_viz = NULL,
graph_options = NULL,
node_options = NULL,
edge_options = NULL,
stand = FALSE,
...
)
Arguments
- model
A model fit object of class lavaan.
- labels
An optional named list of variable labels.
- include
which parameters to include in the plot. Default is all regression and latent relationships. "covs" will also include covariances, while "all will also include error variances.
- gr_viz
pass a gr_viz model generated from
create_grviz
to create plot from that directly- graph_options
a named list of graphviz graph attributes
- node_options
a named list of graphviz node attributes
- edge_options
a named list of graphviz edge attributes
- stand
Should the coefficients being used be standardized coefficients
- ...
Additional arguments to be passed to create_grviz for creating edges