I am trying to "trick" semPaths into showing me a latent variable for the error term. Unfortunately, the function is placing the latent error circle right on top of another path. Here's a minimal reprex:
library(lavaan)
library(semPlot)
model <- "
mpg ~ hp
error =~ mpg
"
fit <- sem(model, data = mtcars)
semPaths(fit)
I've played around with a bunch of different parameter settings, but I can't get it to move. I'd rather not have to manually set up a custom layout.
I am trying to "trick" semPaths into showing me a latent variable for the error term. Unfortunately, the function is placing the latent error circle right on top of another path. Here's a minimal reprex:
I've played around with a bunch of different parameter settings, but I can't get it to move. I'd rather not have to manually set up a custom layout.