I am trying to change the labels in ggbio's autoplot output (specifically, when the input is a TxDb) so that the transcripts are labelled with the corresponding gene symbol. What I'm starting with is the following code:
library(ggbio)
library(GenomicRanges)
wh <- GRanges(seqnames='chr18',
ranges=IRanges(start=11688900,end=11885700)
)
library(TxDb.Hsapiens.UCSC.hg19.knownGene)
txdb <- TxDb.Hsapiens.UCSC.hg19.knownGene
autoplot(txdb, which = wh)
The output is very nice, but the transcripts are labelled with transcript identifiers such as uc002kqh.3, etc. I would like to replace these labels with gene symbols, but despite poring through the documentation I can see no way to do this. Any ideas?
