畫圓形樹形圖的時候 正常出圖如下
library(ggplot2)
library(ggtree)
set.seed(2017-02-16)
tree1 <- rtree(50)
ggtree(tree1,layout = "circular",
branch.length = "none")+
geom_tiplab()
如果要增加中心的空白區域,可以使用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)
參考鏈接
https://stackoverflow.com/questions/36000716/ggtree-change-radius-scale