文章预览
1 gggenes绘制基因结构图 #CRAN稳定版安装; install .packages( "gggenes" ) #包的载入; library (ggplot2) library (gggenes) #自定义配色; mycol '#6A8EC9', '#652884' ,'#652884' ,'#8A7355', '#CC5B45','#B46DA9') #绘制基因结构图; ggplot (example_genes[1:42,], aes(xmin = start, xmax = end, y = molecule, fill = gene)) + geom_gene_arrow (arrowhead_height = unit(6, "mm" ), arrow_body_height = unit(4, "mm" )) + facet_wrap (~ molecule, scales = "free" , ncol = 1) + scale_fill_manual (values = mycol)+ labs (y= "" ) + theme_genes () #在箭头中添加基因标签; ggplot (example_genes[1:42,], aes(xmin = start, xmax = end, y = molecule , fill = gene, label = gene)) + geom_gene_arrow (arrowhead_height = unit(6, "mm" ), arrow_body_height = unit(4, "mm" ),
………………………………