Entering edit mode
I am wondering if something like this (A and B):
is possible with `ggbio`.
I am wondering if something like this (A and B):
is possible with `ggbio`.
Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Thank you for your reply. To draw genes, what I use is the following:
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.
Not sure. I don't think you can get just the genes from the TxDb directly. You'll need to extract them and pass them directly as a GRanges. As for the labeling, from reading the code, it might be possible to coerce that GRanges to a GRangesList, and labels might show up above the midpoint of the rectangles. I don't think there's any way to get them below. The author of ggbio has moved on to other things, so the package is not in a very good state right now.