Question: Gviz: Add label/title to GenomeAxisTrack
0
gravatar for alex.gos90
21 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 • 429 views
ADD COMMENTlink modified 21 months ago by Robert Ivanek640 • written 21 months ago by alex.gos9010
Answer: Gviz: Add label/title to GenomeAxisTrack
1
gravatar for Robert Ivanek
21 months ago by
Robert Ivanek640
Switzerland
Robert Ivanek640 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

ADD COMMENTlink written 21 months ago by Robert Ivanek640

Hi Robert,

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

Best,
Alex

ADD REPLYlink written 21 months ago by alex.gos9010
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 165 users visited in the last hour