简体   繁体   English

圆形系统发育名称削减

[英]Circular phylogeny names cut

I'm trying to place a phylogeny at the middle of a composite plot.我试图将系统发育放在复合 plot 的中间。 I however fail to find the proper setting for this, as either the names on top&bottom, or the names on left and right are cut.但是,我找不到合适的设置,因为顶部和底部的名称或左右两侧的名称都被剪切了。
The only solution I found is reducing cex (size of taxa name), but then it looks really silly, because the taxa names are minute.我找到的唯一解决方案是减少 cex (分类名称的大小),但它看起来真的很傻,因为分类名称很小。

Simple reproducible example:简单的可重现示例:

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)

Any ideas how to solve this?任何想法如何解决这个问题? It would be ideal if I could scale down the branch length part of the plot in comparison to taxa name.与分类群名称相比,如果我可以缩小 plot 的分支长度部分,那将是理想的。

在此处输入图像描述

The xpd graphical parameter allows text to plot outside a clipping area. xpd图形参数允许文本到剪切区域之外的 plot。 Try par(xpd = NA) :尝试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)

输出

You can change the ratio of text size to edge lengths using the cex parameter and enlarging the fig area, as you allude to you your question.您可以使用cex参数更改文本大小与边长的比率并扩大fig区域,因为您提到了您的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM