YuLab-SMU / ggtree

:christmas_tree:Visualization and annotation of phylogenetic trees
https://yulab-smu.top/treedata-book/
821 stars 172 forks source link

layout_dendrogram and theme_tree2 are incompatiable #598

Closed SamPassmore closed 6 months ago

SamPassmore commented 6 months ago

Prerequisites

Describe you issue

Ask in right place

Hi,

This is a bug I presume, but you cannot use theme_tree2 & layout_dendrogram concurrently.

Below is some example code to show the problem:


library(ape)

t = rcoal(10)

ggtree(t) + 
  layout_dendrogram() + 
  theme_tree2()

## order is not important
ggtree(t) + 
  theme_tree2() + 
  layout_dendrogram() 
SamPassmore commented 6 months ago

This is the same problem as #584