当前位置:网站首页>Network diagram of R language student letter chart learning

Network diagram of R language student letter chart learning

2022-07-23 06:34:00 Mrrunsen

Network diagram can show the relationship between different variables , It also contains a large amount of information , It is very common in Shengxin articles . At present, it is more commonly used to draw network diagrams cytoscape Software , This software is very powerful , You can draw many complex and exquisite network diagrams . however R There are also many languages that can draw network diagrams R package , Let's learn today .

Before learning how to draw a picture, first understand the main elements of the picture .
This network diagram is mainly composed of points and lines , Different attributes should be set for the color and size of the points , The color of the line should also set different properties , in addition , The points in this picture are 2 layer , One layer only has different colors ! The idea of this layer overlay and ggplot2 agree without prior without previous consultation ! We just need to draw a big point first , Superimpose again 1 Point up the smaller layer , You can achieve two-tier points .
drawing

What is used this time R The package mainly includes ggplot2、tidygraph、ggraph.

rm(list = ls())

library(tidygraph)
library(ggplot2
原网站

版权声明
本文为[Mrrunsen]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/204/202207221825286533.html