Entering edit mode
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)