Gviz: Add label/title to GenomeAxisTrack
1
0
Entering edit mode
alex.gos90 ▴ 10
@alexgos90-13597
Last seen 22 months ago
Germany

Dear Gviz Developers,

thank you for creating such a wonderful package.

 

I am working with the genome 'ce10', for which there is no cytoband data available at UCSC and therefore no IdeogramTrack is possible.

Now I would like to know, whether it is possible to place a title or label to the left of the GenomeAxisTrack , such that I could put the chromosome there, because else that information would be missing from the figure. 

Thanks for any suggestions!

Best,

Alex

Gviz celegans • 1.5k views
ADD COMMENT
1
Entering edit mode
Robert Ivanek ▴ 730
@robert-ivanek-5892
Last seen 4 months ago
Switzerland

Dear Alex,

This should work, with default scheme:

library(Gviz)

axisTrack <- GenomeAxisTrack(showTitle=TRUE, name="chr1",  background.title="lightgray", rotation.title=0)

plotTracks(axisTrack, from = 1e+06, to = 9e+06)

or with transparent background and tittle in dark grey:

axisTrack <- GenomeAxisTrack(showTitle=TRUE, name="chr1", fontcolor.title="#808080", rotation.title=0)
plotTracks(axisTrack, from = 1e+06, to = 9e+06)

Best

Robert

ADD COMMENT
0
Entering edit mode

Hi Robert,

thank you very much, that was much easier than expected. 

Best,
Alex

ADD REPLY

Login before adding your answer.

Traffic: 554 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