Question: ggbio: integrate different plots
0
2.9 years ago by
Spain
andreucat910 wrote:

I am wondering if something like this (A and B):

is possible with ggbio.

ggbio • 719 views
modified 2.9 years ago by Michael Lawrence11k • written 2.9 years ago by andreucat910
0
2.9 years ago by
United States
Michael Lawrence11k wrote:

It's possible with Tracks() to stack plots with a genomic X axis, assuming you could make them in the first place.

Thank you for your reply. To draw genes, what I use is the following:

p2 <- autoplot(txdb, which=genes_subset, label.color = "black", color = "brown", fill = "brown") +
theme(panel.grid.major = element_blank(), panel.grid.minor = element_blank())

it draws gene structures including exons, introns, etc. How could I draw something like in the image? Just a rectangle with the gene names below.