library(lavaan)
library(lavaanPlot)
<- 'mpg ~ cyl + disp + hp
model qsec ~ disp + hp + wt'
<- sem(model, data = mtcars) fit
lavaanPlot(model = fit, edge_options = list(color = "grey"), coefs = FALSE,
node_options = list(shape = "box", fontname = "Helvetica"))