SachaEpskamp / semPlot

Path diagrams and visual analysis of various SEM packages' output
GNU General Public License v2.0
61 stars 20 forks source link

Weird lines when plotting WLSMV models #8

Closed joaovissoci closed 7 years ago

joaovissoci commented 7 years ago

Hey Sacha, I love this package and use it all the time. I was plotting some standard psychometric study with CFA on a polytomous scale. I am using lavaan and WLSMV but when I plot with semPaths it returns me a diagram with some weird lines in the observed variables:

screen shot 2016-11-23 at 14 23 58

Have you seen this before? My script is:

cfa_model <- '
Adt =~  h1 + h2 + h3 + h4 + h5 + h6 + h7 + h8 + h9 + h10
             '
fit <- lavaan::cfa(cfa_model,
                   data = data,
                   estimator="WLSMV",
                   ordered=names(data))

semPlot::semPaths(fit,"model")
SachaEpskamp commented 7 years ago

Apologies for the late reply. The lines indicate the thresholds of the variables. You can remove them with thresholds = FALSE