title: igraph plot conditional vertex color
body: <p>I'm new to R and iGraph. I'm trying to make a vertex in column position #1, appear in a specific color.</p>
  
  <p>My data comes in from CSV and looks like this: </p>
  
  <pre><code>CL1920  202.80  V66.7   198.89  511.9   799.02  401.9   696.1   388.01  202.80                                                                                                                               
  RM119041 331.82 294.10                                                                                                                                                                                       
  RM38755 331.82  294.10  276.0   331.0   294.10                                                                                                                   
  HK54701 331.82  294.10  276.0   331.0   294.10  401.9   V10.51
  ....
  </code></pre>
  
  <p>My plot script look looks something like this: </p>
  
  <pre><code>dat &lt;- read.csv("data.csv", header =F)
  g &lt;- graph.data.frame(dat, directed = F)
  colCount &lt;- 1+ count.fields("dat.csv", sep = ",")
  V(g)$label &lt;- NA
  set.seed(10)
  par &lt;- par()$mar; par(mar=rep(0, 4))
  plot (g, layout = layout.fruchterman.reingold,
        vertex.frame.color = "#FFFFFF",
        vertex.size = 5,
        edge.width = 2.5+ (log(colCount)/max(log(colCount))),
        edge.color = "Grey60")
  </code></pre>
  
  <p>I've tried unsuccessfully to set vertex.color. Examples like this seem to default to "lightblue"</p>
  
  <pre><code> V(g)$color &lt;- ifelse (V(g)$V1, "red", "blue")
  </code></pre>
  
  <p>Can someone point me in the right direction?</p>