genoPlotR is among few R packages to draw genome alignment plot. I plan to arrange a genome alignment plot with other plots by packages like cowplot. But it seems that the output of plot_gene_map()
function can only be exported into a image file. How could I save the output of plot_gene_map()
function as a grob?
I have tried code like p1 <- plot_gene_map(...)
. However, the class of p1
is vpPath
. Is it possible to convert a vpPath
class to a grob?
Thanks for your quick reply, Prof. Guy!
I just find the
grid.grab()
function in grid package. I think it is what I am looking for.Cheers!