The support.bioconductor.org editor has been updated to markdown! Please see more info at: Tutorial: Updated Support Site Editor

Question: Gviz: Add label/title to GenomeAxisTrack
0
13 months ago by
alex.gos9010
alex.gos9010 wrote:

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

celegans gviz • 270 views
modified 13 months ago by Robert Ivanek590 • written 13 months ago by alex.gos9010
1
13 months ago by
Robert Ivanek590
Switzerland
Robert Ivanek590 wrote:

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

Hi Robert,

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

Best,
Alex