I am using Gviz to plot a region given by a gene name, for instance:
biomTrack <- BiomartGeneRegionTrack(genome ="sacCer3",name="ENSEMBL",gene="YBL087C")
plotTracks(list(btrack))
This works fine. I also want to add another annotation track:
btrack<-AnnotationTrack(start = c(100,200,300),width=100,chromosome = "chrII",name="test",showFeatureId=T)
plotTracks(list(biomTrack,btrack))
Now the region displayed appears to be all of chrII. I know I can use the from/to parameters in plotTracks but I want to select regions by gene name. Is this possible?