wilkox/gggenes

Error in grid.Call

liuqian666 opened this issue · 1 comments

Sorry for disturb you. But I've met trouble when I using gggenes.
here're my code:

library(ggplot2)
library(gggenes)
ggplot(example_genes, aes(xmin = start, xmax = end, y = molecule, fill = gene)) + geom_gene_arrow() + facet_wrap(~ molecule, scales = "free", ncol = 1) + scale_fill_brewer(palette = "Set3")
Then the screen shows : Error in grid.Call(C_convert, x, as.integer(whatfrom), as.integer(whatto), :
Viewport has zero dimension(s)

I've tried to update Rstudio and all the other packages, but the problem was still unsolved. Anybody can help me?
Thank you very much.

I had the same problem and I found here slowkow/ggrepel#113 that this is a problem related to graph dimensions. I tried this option + theme(legend.position="none") and worked for me.