Question: Newbie - Adding Labels to Individual Genes with ggbio?
0
gravatar for fathniz
4.3 years ago by
fathniz0
United States
fathniz0 wrote:

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)
ADD COMMENTlink modified 4.3 years ago by arfranco130 • written 4.3 years ago by fathniz0
Answer: Newbie - Adding Labels to Individual Genes with ggbio?
0
gravatar for arfranco
4.3 years ago by
arfranco130
European Union
arfranco130 wrote:

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 COMMENTlink written 4.3 years ago by arfranco130
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: 354 users visited in the last hour