text: user104: I'm learning the Gviz bioconductor package, I generate a plot as follows:
  library(Gviz)
  track <- AnnotationTrack(start=c(1,5,7), end=c(2,6,10), strand=c('*','*','*'), stacking="dense", showFeatureId=TRUE, id=c('red','blue', 'red'))
  pdf(file=paste("test","pdf", sep="."))
  plotTracks(track)
  dev.off()
  
  test.pdf looks like this: 
  However, what I want is for the boxes to be coloured rather than labelled with the colour word, how to do this?
  Note that my real example is much more complex than this.
  
  user939: Did you try the fill argument?
  Something like this:
  track <- AnnotationTrack(start=c(1,5,7), end=c(2,6,10), strand=c('*','*','*'), stacking="dense", showFeatureId=TRUE, id=c('red','blue', 'red'), fill=c('red','blue', 'red'))
  
  
original_text: 104: <p>I'm learning the Gviz bioconductor package, I generate a plot as follows:</p>
  
  <pre><code>library(Gviz)
  track &lt;- AnnotationTrack(start=c(1,5,7), end=c(2,6,10), strand=c('*','*','*'), stacking="dense", showFeatureId=TRUE, id=c('red','blue', 'red'))
  pdf(file=paste("test","pdf", sep="."))
  plotTracks(track)
  dev.off()
  </code></pre>
  
  <p><code>test.pdf</code> looks like this: <a href="https://i.stack.imgur.com/bXZPG.png" rel="noreferrer"><img src="https://i.stack.imgur.com/bXZPG.png" alt="enter image description here"></a></p>
  
  <p>However, what I want is for the boxes to be coloured rather than labelled with the colour word, how to do this?</p>
  
  <p>Note that my real example is much more complex than this.</p>
   939: <p>Did you try the <code>fill</code> argument?</p>
  
  <p>Something like this:</p>
  
  <pre><code>track &lt;- AnnotationTrack(start=c(1,5,7), end=c(2,6,10), strand=c('*','*','*'), stacking="dense", showFeatureId=TRUE, id=c('red','blue', 'red'), fill=c('red','blue', 'red'))
  </code></pre>
  