thackl / gggenomes

A grammar of graphics for comparative genomics
https://thackl.github.io/gggenomes/
Other
579 stars 64 forks source link

conflicts between gggenomes and gggenes #106

Closed zhaoxvwahaha closed 10 months ago

zhaoxvwahaha commented 2 years ago

Hi,

The following 2 commands work well when I only install gggenes, but after installed the gggenomes, the command didn't work and get errors:

p<-ggplot(da, aes(xmin = start, xmax = end, y =molecule, fill = gene, label = gene)) p+geom_gene_arrow(arrow_body_height = unit(10, "mm"),arrowhead_height = unit(10, "mm"),arrowhead_width = unit(2, "mm"),alpha=0.8,colour="white")+geom_gene_label(height = grid::unit(8, "mm"), grow = FALSE)+theme_genes()+scale_x_continuous(breaks=seq(0, 35000, 4000)) Error in UseMethod("pull_genes") : no applicable method for 'pull_genes' applied to an object of class "data.frame" In addition: Warning message: Ignoring unknown parameters: height, grow

iimog commented 2 years ago

Did you load both gggenomes and gggenes prior to these commands? If so, in which order? Did you see any warning messages when running the respective library commands?