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()
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.