Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

无法正常绘制layout = "equal-angle"的tree #612

Open
SeanZhi opened this issue Apr 8, 2024 · 0 comments
Open

无法正常绘制layout = "equal-angle"的tree #612

SeanZhi opened this issue Apr 8, 2024 · 0 comments

Comments

@SeanZhi
Copy link

SeanZhi commented Apr 8, 2024

HI 余老师:

在使用ggtree绘图的过程中,当我设置layout = "equal-angle"时出现了错误:
image

我使用的具体代码如下:

nwk <- "./p_dist_mat_fastme-tree.nwk"
tree <- read.tree(nwk)

tree <- groupOTU(tree,groupinfo)
ggtree(tree, layout="equal_angle",aes(color=group)) 

这是我的tree信息:
image

sessionInfo 如下:
R version 4.1.1 (2021-08-10)
Platform: x86_64-conda-linux-gnu (64-bit)
Running under: CentOS Linux 7 (Core)

Matrix products: default
BLAS/LAPACK: /data/own_disk/dazhi/tools/miniconda/envs/R_Python/lib/libopenblasp-r0.3.24.so

locale:
[1] LC_CTYPE=zh_CN.UTF-8 LC_NUMERIC=C
[3] LC_TIME=zh_CN.UTF-8 LC_COLLATE=zh_CN.UTF-8
[5] LC_MONETARY=zh_CN.UTF-8 LC_MESSAGES=zh_CN.UTF-8
[7] LC_PAPER=zh_CN.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=zh_CN.UTF-8 LC_IDENTIFICATION=C

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] treeio_1.18.0 ggtree_3.2.0 ggplot2_3.5.0

loaded via a namespace (and not attached):
[1] Rcpp_1.0.12 pillar_1.9.0 compiler_4.1.1 yulab.utils_0.0.6
[5] base64enc_0.1-3 tools_4.1.1 aplot_0.1.10 digest_0.6.35
[9] uuid_1.2-0 tidytree_0.4.2 nlme_3.1-164 jsonlite_1.8.8
[13] evaluate_0.23 lifecycle_1.0.4 tibble_3.2.1 gtable_0.3.4
[17] lattice_0.22-5 pkgconfig_2.0.3 rlang_1.1.3 ggplotify_0.1.0
[21] IRdisplay_1.1 cli_3.6.2 patchwork_1.2.0 parallel_4.1.1
[25] IRkernel_1.3.2 fastmap_1.1.1 repr_1.1.6 withr_3.0.0
[29] dplyr_1.1.4 gridGraphics_0.5-1 generics_0.1.3 vctrs_0.6.5
[33] grid_4.1.1 tidyselect_1.2.1 glue_1.7.0 R6_2.5.1
[37] fansi_1.0.6 pbdZMQ_0.3-11 farver_2.1.1 purrr_1.0.2
[41] tidyr_1.3.1 magrittr_2.0.3 scales_1.3.0 htmltools_0.5.7
[45] colorspace_2.1-0 ape_5.7-1 labeling_0.4.3 utf8_1.2.4
[49] lazyeval_0.2.2 munsell_0.5.0 ggfun_0.0.9 crayon_1.5.2

不过当使用layout = "fan"可以正常得到结果,期待你的回复。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant