Hi,
I am having a problem of plotting ancestral states on the tree and reversing the time scale at the same time.
I use Revgadets to plot ancestral states in R
Add time scale
After I use revts() to reverse the time scale, the ancestral states on nodes are at the wrong position.
Hi, I am having a problem of plotting ancestral states on the tree and reversing the time scale at the same time. I use Revgadets to plot ancestral states in R Add time scale![image](https://user-images.githubusercontent.com/99247853/209770186-2bc2d38d-a481-45aa-8329-dde1d0d475d5.png)
After I use revts() to reverse the time scale, the ancestral states on nodes are at the wrong position.![image](https://user-images.githubusercontent.com/99247853/209769008-d5eb5e81-62ec-4ce7-9f40-6082434a655f.png)
This is my code and file https://github.com/Hong-Wun/problem_of_revts.git
Session and version info:
R version 4.2.1 (2022-06-23 ucrt) os: Windows 10 x64 (build 22621) system: x86_64, mingw32 ggplot2_3.4.0 ggtree_3.4.2
Any suggestions will be appreciated.