1

I am using the following code semPlot::semPaths to plot a lavaan model (the complete reproducible code is in this Gist).

semPaths(f,
         title = FALSE,
         curvePivot = TRUE,
         what = "std",
         rotation = 2,
         layout = "tree2",
         optimizeLatRes = TRUE,
         intercepts = FALSE,
         edge.label.cex = 0.95,
         exoVar=FALSE,
         sizeMan=5,
         sizeLat=7,
         nCharNodes=5,
         residuals=FALSE,
         fixedStyle=1,
         freeStyle=1,
         curvePivot = FALSE)

And the following is the semPaths output:

enter image description here

As you can see, there are weired horizonla lines in the last four manifest variables. How can I remove them? (and why it's happening?)

Thanks in advance!

Update:

This is also the case if saved to PDF (by adding arguments filetype = "pdf", filename = "x") to the function:

filename = "x"

psyguy
  • 312
  • 3
  • 16
  • 2
    how about adding `thresholds = FALSE` to your `semPaths` function? – Ben Aug 26 '19 at 02:37
  • Thanks @Ben, that solved it! But I'm curious how that argument bein TRUE had made the issue? – psyguy Aug 26 '19 at 13:26
  • 1
    if `TRUE` (default) then thresholds included in path diagram; default for `threshAtSide` is `FALSE` which puts the small lines inside of nodes – Ben Aug 26 '19 at 19:07
  • Ah I see, didn't see how `threshold` related to the threshold parameters estimated by lavaan. Thanks. – psyguy Aug 28 '19 at 16:27

0 Answers0