plot_lavaan {lavaangui} | R Documentation |
Create Interactive Path Diagrams for Lavaan Models
Description
The plot_lavaan
function creates path diagrams for lavaan model.
The created paths diagrams are interactive.
That is, their appearance can be customized easily, for example, by dragging
around nodes representing variable with the mouse.
Usage
plot_lavaan(fit, where = "gadget")
Arguments
fit |
A lavaan model, as returned by the functions |
where |
A character string to specify where the path diagram should be shown. The default value "gadget" shows it directly in Rstudio. For "browser", it's shown in your default browser. For non-RStudio users, the parameter has no effect, and the path diagram is always shown in the browser. |
Value
nothing
Examples
library(lavaan)
model <- '
visual =~ x1 + loadingx2*x2 + x3
textual =~ x4 + x5 + x6
speed =~ x7 + x8 + x9
'
fit <- cfa(model, data = HolzingerSwineford1939)
plot_lavaan(fit)
[Package lavaangui version 0.2.0 Index]