[英]Circular phylogeny names cut
我試圖將系統發育放在復合 plot 的中間。 但是,我找不到合適的設置,因為頂部和底部的名稱或左右兩側的名稱都被剪切了。 我找到的唯一解決方案是減少 cex (分類名稱的大小),但它看起來真的很傻,因為分類名稱很小。
簡單的可重現示例:
library(ape) par(fig=c(0.25, 0.75, 0.25,0.75)) data(bird.orders) plot(bird.orders, type = "fan", use.edge.length = T)
library(ape)
par(fig=c(0.25, 0.75, 0.25,0.75))
data(bird.orders)
plot(bird.orders, type = "fan", use.edge.length = T)
任何想法如何解決這個問題? 與分類群名稱相比,如果我可以縮小 plot 的分支長度部分,那將是理想的。
xpd圖形參數允許文本到剪切區域之外的 plot。 嘗試par(xpd = NA) :
xpd
par(xpd = NA)
library(ape) par(fig=c(0.25, 0.75, 0.25,0.75), xpd = NA) data(bird.orders) plot(bird.orders, type = "fan", use.edge.length = T)
您可以使用cex參數更改文本大小與邊長的比率並擴大fig區域,因為您提到了您的問題。
cex
fig
[英]Names cut on the x axis of the boxplot
[英]Plotting Traits on a Phylogeny
[英]Draw on a phylogeny edge with R
[英]Plotting traits on phylogeny with phytools
[英]cut data frame using grep in row names
[英]Plot squares close to phylogeny taxa
[英]R: Associate values to tips in phylogeny
[英]Change tip labels in phylogeny in R
[英]Multicoloured lines on phylogeny plot in R
[英]How to edit “row.names” after split and cut2 in R?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.