title: Markov chain graphics in igraph
body: <p>I don't understand why the transition state labels are incorrect when I plot my markov chain as an <code>igraph</code> object.  The labels are correct when plotted through the <code>markovchain</code> package.  Probably something simple I am doing wrong.</p>
  
  <p>Example below.</p>
  
  <pre><code>library(markovchain)
  library(igraph)
  
  
  tmD &lt;- matrix(c(0.7,0.2,0.1, 0.4,0.3,0.3, 0.2,0.4,0.4), nrow = 3, byrow = TRUE)
  
  dtmcD &lt;-new("markovchain", transitionMatrix=tmD, 
                             states=c("Cheerful", "So-So","Gloomy"), name="mood")
  g &lt;- as(dtmcD, "igraph")
  
  V(g)["Cheerful"]$color&lt;-"red"
  V(g)["So-So"]$color&lt;-"green"
  V(g)["Gloomy"]$color&lt;-"blue"
  
  plot(g, vertex.color=V(g)$color, vertex.size=20, vertex.label.cex=1.5,
          vertex.label.dist=3, edge.arrow.size=0.2, , edge.label=tmD)
  
  plot(dtmcD, vertex.size=20, vertex.label.color="black", 
               vertex.label.dist=6 , edge.arrow.size=0.2, , main="Mood")
  </code></pre>