title: Having problems labelling nodes in semplot > sempaths
body: <p>Any help would be appreciated with regards to labelling nodes from a CFA model (calculated using <code>Lavaan</code>) and plot using the <code>semPlot</code> package. </p>
  
  <p>I am not having problems with specifying the model. However, when it comes to plotting the output (fit3) I keep getting an error whenever I try to change the node labels from the one's present in the dataset to more publish-friendly one's. The error I get is:</p>
  
  <blockquote>
    <p>Error in if (border) { : missing value where TRUE/FALSE needed</p>
  </blockquote>
  
  <p>The code for the plot is as follows:</p>
  
  <pre><code>semPaths(fit3,  what = "std", layout = "tree", title = FALSE,  style = "lisrel", 
           nodeLabels = c("Internet\nAddiction", "Engagement", "Withdrawal",
                          "Conflict","Relapse","Tolerance","Mood mod","Salience"),
           sizeMan = 10, sizeLat = 10)
  </code></pre>
  
  <p>Also to note, I don't have any problems with plotting the model until I include the argument <code>nodeLabels = c("Inter...etc.)</code>. I have also tried creating a list of label names <code>(lbls = c("Inter...etc.)</code> and them called the list using <code>nodeLabels = lbls</code>, but this leads to the same error message as I quoted above </p>
  
  <blockquote>
    <p>"Error in if (border) { : missing value where TRUE/FALSE needed"</p>
  </blockquote>
  
  <p>Any help and guidance with this would be really appreciated. </p>