Skip to content

Commit cb75f34

Browse files
author
EasyChart
authored
Update 图10-1-3_有向且无权重关系相邻矩阵的热力图.R
1 parent d7884fa commit cb75f34

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

第10章 网络关系型图表/图10-1-3_有向且无权重关系相邻矩阵的热力图.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11

2-
#EasyCharts团队出品,
3-
#如需使用与深入学习,请联系微信:EasyCharts
2+
#EasyCharts团队出品,
3+
#如需使用与深入学习,请联系微信:EasyCharts
44

55
library(ComplexHeatmap )
66
library(circlize)
7-
7+
#数据来源:https://raw.githubusercontent.com/holtzy/data_to_viz/master/Example_dataset/13_AdjacencyUndirectedUnweighted.csv
88
df <-read.csv("AdjacencyUndirectedUnweighted.csv",row.names=1,header=TRUE,check.names = FALSE)
99

1010
df <- df[which(rowSums(df,na.rm =TRUE)>=3), which(colSums(df,na.rm =TRUE)>=3)]

0 commit comments

Comments
 (0)