Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use the ggtree of R language to add picture notes to the evolutionary tree

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

How to use the ggtree of R language to add picture notes to the evolutionary tree, this article introduces the corresponding analysis and solution in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible method.

See the tweet Nature retweeted by someone on moments | Great discovery! The genome of the lungfish, a close relative of the human being, was analyzed and clicked in to see a picture of an evolutionary tree.

Image.png

I happened to be learning ggtree in R language recently, and I had seen a similar picture in ggtree's help document before, so I decided to repeat it.

First of all, save the screenshot of the animal on the right.

Named after a Latin name, separated by an underscore between genera and species

The next step of image.png is to simulate an evolutionary tree file (Anolis_carolinensis:0.4,Gallus_gallus:0.32) 94VR 0.4 Magnum Homographies sapiens, 0.3) 950.4, (Ambystoma_mexicanum:0.4,Xenopus_laevis:0.41) 93Rd 0.6) 90Rom 0.41 Magneto NeoceratodussforsteriVera 0.3) 800.3Latimeria glachalumnae0.6) 99Rose 0.3, (Danio_rerio:0.3) Lepisosteus_oculatus:0.4) 95 Vera 0.5) 100RU 0.4 Magna CallorhinchusThe Mili Vera 0.3)

The most basic evolutionary tree shows the package library (stringr) used to load.

Library (ggtree)

Library (treeio)

Read into the evolutionary tree tree1

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report