Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Visualization of collinear results by ggplot2 of R language

Shulou Source: shulou.com Published: 2022-06-02 07:17:17 09月29日 Update

This article focuses on "R language ggplot2 to do collinear result visualization", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Next let the editor to take you to learn "R language ggplot2 to do collinear result visualization" bar!

Today, someone asked how the following picture should be realized, but I really have no idea.

Image.png

I went to find the information about ggplot2 doing chord plot, but I couldn't find it. Guess that this diagram may be implemented with the help of the circlize package, for example, the final effect of the code https://www.r-graph-gallery.com/122-a-circular-plot-with-the-circlize-package.html in this link is

Image.png

The outer two circles of this picture are a bit like the one at the beginning of the tweet. Circlize, this R bag still needs to be learned.

When looking for information, I found another useful function, which is the geom_diagonal_wide () function in the ggforce package. I feel that if it is very appropriate to show the results of collinear analysis, its final effect is

Image.png Code library (ggforce)

Data

Tags: Linearity results language visualization code content functions effects materials learning appropriate practical deeper two interests regions practicality practicality beginning ideas Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi MySQL Redmi Huawei OPPO Reno