title: Changing order of legend labels in ggord
body: <p>I am plotting the outcome of a linear discriminant analysis using the ggord function. ggord also provides a legend, which lists the legend labels in alphabetical order. Does anyone know how I can change the order of the legend labels?</p>
  <p>I know that for general plots one would change the sequence of the factors in the input data set using factors(x,levels=c()), but I suppose that doesn't work in my case since ggord reads the legend labels from the lda model output.</p>
  <pre><code>ggord(ldamod2, av.nonna2$state,size=2,cols=c(high.col,low.col,medium.col), arrow=0.2,txt=3,vec_lab=text.list2, grp_title=&quot;Emission State&quot;, max.overlaps = 8, repel=TRUE, ext=1) + 
            theme(legend.position = 'right')+
            labs(title = &quot;Nov 2018 - Dec 2019&quot;)+ theme(plot.title = element_text(hjust = 0.5)) +
            annotate(&quot;text&quot;, x=-3.1, y=3.7, label= &quot;b&quot;,col=&quot;grey30&quot;) 
  </code></pre>
  <p><a href="https://i.stack.imgur.com/egVST.png" rel="nofollow noreferrer">enter image description here</a></p>