![](/img/trans.png)
[英]color.plot.phylo in PICANTE, how do you change size (cex) of tips or pass commands to plot.phylo?
[英]especify width to concrete branches in a plot.phylo
我想使用3種不同的線寬在系統發育樹上標記不同的分支。 我如何確定分支2的寬度為2,第10行的寬度為4,其余的行的寬度為1? 例如,bird.orders數據集中有88個分支
data(bird.orders)
bird.orders@edge
這顯然什么也沒做
plot(bird.orders, edge.width = c(bird.orders$edge[2]==2, bird.orders$edge[10]==4, bird.orders$edge[-c(2,10)]==1))
謝謝!
首先,您需要確定邊緣順序,當plot.phylo()
的參數方向設置為direction='leftwards'
plot.phylo()
direction='leftwards'
時,顯然遵循這些規則:
一旦獲得了邊緣圖,就必須為每個分支建立一個具有所需寬度的矢量。 Wector位置與邊緣位置匹配。 使用此問題中的示例,此代碼將使分支1到5的寬度為4,其余的將采用默認寬度(1):
plot(bird.orders, edge.width = c(4,4,4,4,4))
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.