画圆形树形图的时候 正常出图如下
library(ggplot2)
library(ggtree)
set.seed(2017-02-16)
tree1 <- rtree(50)
ggtree(tree1,layout = "circular",
branch.length = "none")+
geom_tiplab()
image.png
如果要增加中心的空白区域,可以使用xlim()函数来调节
library(ggplot2)
library(ggtree)
set.seed(2017-02-16)
tree1 <- rtree(50)
ggtree(tree1,layout = "circular",
branch.length = "none")+
geom_tiplab()+
xlim(-20,NA)
image.png
参考链接
https://stackoverflow.com/questions/36000716/ggtree-change-radius-scale