Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

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

Shulou Source: shulou.com Published: 2022-06-01 22:05:08 10月03日 Update

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

Tags: Picture evolution language question Latin help comment next underline more answer easy big easy between human location content drawing animal Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology Xiaomi Shulou Information OPPO Reno NVidia