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 R language ggplot2+ggtree+aplot to draw Bubble Chart and combine Cluster Tree

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

Share

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

How to use R language ggplot2+ggtree+aplot to draw bubble chart combination clustering tree diagram, in order to solve this problem, 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.

R language ggplot2 bubble diagram (dotplot) shows gene expression. Today's content shows how to add a cluster tree to the bubble chart and the left and top. Today's content mainly refers to the aplot package: let you draw a more complex picture.

What is repeated today is the figure2f in the paper.

Image.png

According to the code provided in this paper, we get the data used for drawing, some of which are as follows

Image.png

But he was not able to draw a picture with the drawing code he provided. Because he used a dot_plot () function, he couldn't find out where it came from. Now that you've got the data, use ggplot2 to draw it yourself.

Read in the data to make a bubble chart, data.final

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