R language ggplot2 draws a heat map to show the results of GO enrichment analysis.
This article shows you how the R language ggplot2 draws a heat map to show the results of GO enrichment analysis. The content is concise and easy to understand, which can definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.
Image.png
There are many ways to implement this diagram, and today's tweet introduces the code that uses the R language ggplot2 to implement the above figure.
The first is to construct sample data to construct two pieces of data, one is the leftmost grouping color bar, and the other is a heat map showing numerical values on the right.
The code used to construct the data
X