Unwanted bars in nodes of manifest variables by semPlot::semPaths

1.4k Views Asked by At

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"

0

There are 0 best solutions below