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
gravatar for alex.gos90
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
ADD COMMENTlink modified 13 months ago by Robert Ivanek590 • written 13 months ago by alex.gos9010
Answer: Gviz: Add label/title to GenomeAxisTrack
1
gravatar for Robert Ivanek
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

ADD COMMENTlink written 13 months ago by Robert Ivanek590

Hi Robert,

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

Best,
Alex

ADD REPLYlink written 12 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: 238 users visited in the last hour