Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to use R language ggplot2+ggtree+aplot to draw Bubble Chart and combine Cluster Tree

Shulou Source: shulou.com Published: 2022-06-01 22:00:27 10月02日 Update

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

Tags: Bubbles data language content functions levels results papers questions combinations code more formats knowledge references help solutions complexity ease of operation consistency Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Xiaomi Redmi Shulou Technology Microsoft