Newbie - Adding Labels to Individual Genes with ggbio?
1
0
Entering edit mode
fathniz • 0
@fathniz-8343
Last seen 9.5 years ago
United States

I am trying to add gene labels to my plot that renders genomic segments using the ggbio package.

I am using the autoplot() function and pass in a GenomicRanges object. The GRange object has a column of metadata labels that I wish to appear on the generated plot on top of each graphed segment.

The question: How to add labels to the ggbio/ggplot2 plot from a metadata column?

My code is as follows, without labels and with g as a GenomicRanges object.

autoplot(g)
r ggbio ggplot2 dnaseq genomicranges • 1.7k views
ADD COMMENT
0
Entering edit mode
arfranco ▴ 130
@arfranco-8341
Last seen 7 months ago
European Union

We need some more information, such as a couple of lines of your data and their class. You need also to define where you want your labels, if as col or row names

i

ADD COMMENT

Login before adding your answer.

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