Dear Liam and the phylo community,

I was able to solve the problem by first writing the tree to a file and then 
importing it back into R. The error may have occurred because I ladderized the 
tree at some point. Although the simmap worked, the ltt did not. The problem is 
solved temporarily.


Best wishes
Ting-Wen
--
Ph.D. Ting-Wen Chen
Animal Ecology (AG Scheu)
J.F. Blumenbach Institute of Zoology and Anthropology
Georg August Universität Göttingen
Untere Karspüle 2
D-37073 Göttingen, Germany
https://www.uni-goettingen.de/en/348915.html

Liam J. Revell <[email protected]> 於 24.09.2024 02:13 寫道:


Dear Ting-Wen.

Can you send me a minimal reproducible example of this error? Feel free to do 
so off-list.

All the best, Liam

Liam J. Revell
Professor of Biology, University of Massachusetts Boston
Web: http://faculty.umb.edu/liam.revell/
Book: Phylogenetic Comparative Methods in 
R<https://press.princeton.edu/books/phylogenetic-comparative-methods-in-r> 
(Princeton University Press, 2022)


On 9/23/2024 7:37 PM, Chen, Ting-Wen wrote:

[You don't often get email from 
[email protected]<mailto:[email protected]>.
 Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]

CAUTION: EXTERNAL SENDER

Dear colleagues,

I am plotting a lineages-through-time figure from 100 stochastic character maps 
(i.e. simmap) using the ltt() function of the phytools package, to show the 
reconstructed accumulation of lineages in different habitats (regimes). 
However, I am getting an error:

“Error in while (currnode != rt) { : argument is of length zero”.

Could anyone please give me some hints where the error is and how to solve the 
problem?

Thanks a lot and have a nice day!


All the best
Ting-Wen
--
Ph.D. Ting-Wen Chen
Animal Ecology (AG Scheu)
J.F. Blumenbach Institute of Zoology and Anthropology
Georg August Universität Göttingen
Untere Karspüle 2
D-37073 Göttingen, Germany
https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.uni-goettingen.de%2Fen%2F348915.html&data=05%7C02%7Cliam.revell%40umb.edu%7Cbf953894ee5a4ba59b6908dcdc28b0a5%7Cb97188711ee94425953c1ace1373eb38%7C0%7C0%7C638627314545954910%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=QaFlZsY%2BdiwNJ1rLZstqNmRr2xh%2F%2BWLZ5tV402tlv40%3D&reserved=0<https://www.uni-goettingen.de/en/348915.html>


        [[alternative HTML version deleted]]

_______________________________________________
R-sig-phylo mailing list - 
[email protected]<mailto:[email protected]>
https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fstat.ethz.ch%2Fmailman%2Flistinfo%2Fr-sig-phylo&data=05%7C02%7Cliam.revell%40umb.edu%7Cbf953894ee5a4ba59b6908dcdc28b0a5%7Cb97188711ee94425953c1ace1373eb38%7C0%7C0%7C638627314545969888%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=d9m1yVS3%2B0y2X7WRaDH9qkenYDMKpo0ErGMeSuYCAcU%3D&reserved=0<https://stat.ethz.ch/mailman/listinfo/r-sig-phylo>
Searchable archive at 
https://nam10.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.mail-archive.com%2Fr-sig-phylo%40r-project.org%2F&data=05%7C02%7Cliam.revell%40umb.edu%7Cbf953894ee5a4ba59b6908dcdc28b0a5%7Cb97188711ee94425953c1ace1373eb38%7C0%7C0%7C638627314545977191%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=AVb1hHLnVysHivILh0g%2FW2atqTnI75XMiRAjPemyOpE%3D&reserved=0<http://www.mail-archive.com/[email protected]/>



        [[alternative HTML version deleted]]

_______________________________________________
R-sig-phylo mailing list - [email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-phylo
Searchable archive at http://www.mail-archive.com/[email protected]/

Reply via email to