准备输入数据
官方给的例子如下:
> head(example_genes) molecule gene start end strand direction1 Genome5 genA...作图
library(ggplot2)library(gggenes)
ggplot(example_genes, aes(xmin = start, xmax = end, y = molecule...下面的我们加上方向,也加上基因名称,代码如下:
ggplot(example_genes, aes(xmin = start, xmax = end, y = molecule, fill =...gene, label = gene, forward = direction)) + geom_gene_arrow() + facet_wrap(~ molecule, scales...(data = example_subgenes, aes(xmin = start, xmax = end, y = molecule, fill = gene, xsubmin