gviz: name of tracks disappeas
2
0
Entering edit mode
tonja.r ▴ 60
@tonjar-7565
Last seen 4.9 years ago
United Kingdom

In the bioconductor tutorial for gviz I have noticed that sometimes the name of a track disappears from the plot if the track is small. Is it possible to set the minum height of the track, so that the name of the track does not disappear (is independent of the track height) ... or is it possible to set the minimum size of the legend size?

**CpG is not there:**


 

**CpG is there:**


 

gviz • 2.3k views
ADD COMMENT
1
Entering edit mode
@florianhahnenovartiscom-3784
Last seen 3.1 years ago
Switzerland

My bad, the parameter is called size:

​data(cyp2b10)
grTrack <- GeneRegionTrack(cyp2b10, genome="mm9")
dat <- matrix(runif(400), nrow=4)
dtTrack <- DataTrack(start=seq(min(start(grTrack)),max(end(grTrack)), len=100), width=10, data=dat, chromosome=chromosome(grTrack),  name="random data", genome="mm9")
plotTracks(list(GenomeAxisTrack(), grTrack, dtTrack))
## Change height for the DataTrack
displayPars(dtTrack) <- list(size=10)
plotTracks(list(GenomeAxisTrack(), grTrack, dtTrack))

 

Florian

ADD COMMENT
0
Entering edit mode
@florianhahnenovartiscom-3784
Last seen 3.1 years ago
Switzerland

Hi Tonja,

there are both options. You can either set the height parameter for the track, or play with the cex.title parameter. Please note that the former gives the relative size of the track in relation to the height settings of all the other tracks. I.e., if you have three tracks with height settings 1, 2, and 3, their respective relative heights will be 1/6, 2/6 and 3/6 of the available vertical space.

Florian

ADD COMMENT
0
Entering edit mode

Thank you for the answer but how is the height parameter for the track defined in gviz?

ADD REPLY

Login before adding your answer.

Traffic: 305 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6