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

viewClade behaving oddly since update to ggtree_1.12.6 #188

Closed
matbeale opened this issue Aug 7, 2018 · 1 comment
Closed

viewClade behaving oddly since update to ggtree_1.12.6 #188

matbeale opened this issue Aug 7, 2018 · 1 comment

Comments

@matbeale
Copy link

matbeale commented Aug 7, 2018

Hi,
I've just updated to the latest version of R and ggtree, and viewClade has stopped working (presumably something to do with scaling). In the example below, the tree basically rescales to a single branch. I've never noticed this behaviour before, and I'm using trees I've plotted before with the same code. Please see my example:

nwk <- system.file("extdata", "sample.nwk", package="treeio")
tree <- read.tree(nwk)
ggtree(tree) + geom_text2(aes(subset=!isTip, label=node), hjust=-.3)

Full Tree
image

viewClade(ggtree(tree),17)

zoomed clade 17
image

R version 3.5.1 (2018-07-02)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: OS X El Capitan 10.11.6

Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libRlapack.dylib

locale:
[1] en_GB.UTF-8/en_GB.UTF-8/en_GB.UTF-8/C/en_GB.UTF-8/en_GB.UTF-8

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

other attached packages:
[1] treeio_1.4.2 BiocInstaller_1.30.0 bindrcpp_0.2.2 rPinecone_0.1.0 randomcoloR_1.1.0 gridExtra_2.3
[7] reshape2_1.4.3 dplyr_0.7.6 plyr_1.8.4 phytools_0.6-44 maps_3.3.0 ggtree_1.12.6
[13] ape_5.1 ggplot2_3.0.0

@GuangchuangYu
Copy link
Member

duplicated, #187 (comment).

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

2 participants