Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to use ggplot2 to realize a picture that can't be named?

Shulou Source: shulou.com Published: 2022-06-01 23:57:04 10月04日 Update

How to use ggplot2 to achieve a picture can not be named, I believe that many inexperienced people do not know what to do, so this paper summarizes the causes of the problem and solutions, through this article I hope you can solve this problem.

I saw a picture in the paper as follows:

It may be used recently, so I thought about how to achieve it. I don't know the name of this kind of picture, so I can't search it. But it feels like there should be a ready-made package in R language to make this picture. This picture is a bit like the heat map made by ggplot2. Try to implement this picture with ggplot2. The geom_tile () function is usually used to make heat maps with ggplot2.

The first is an example of the geom_tile () function

Construct a dataset with reference to https://www.r-bloggers.com/how-to-make-a-simple-heatmap-in-ggplot2/

Df

Tags: Function picture question name next legend content method size data method more article heat map discoloration adjustment difference helpless between Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker Huawei Shulou Tech Info MariaDB OPPO Reno