什么是社会网络?

R 中的网络分析

James Curley

Associate Professor, University of Texas at Austin

什么是社会网络?

R 中的网络分析

网络数据:邻接矩阵

R 中的网络分析

网络数据:边列表

R 中的网络分析

igraph R 包

library(igraph)

g <- graph.edgelist(as.matrix(df), 
               directed = FALSE)

g
IGRAPH UN-- 7 7 -- 
+ attr: name (v/c)
+ edges (vertex names):
[1] A--B A--C A--D A--E A--F E--F F--G
R 中的网络分析
V(g)
+ 7/7 个顶点,已命名:
[1] A B C D E F G
E(g)
+ 7/7 条边(顶点名):
[1] A--B A--C A--D A--E A--F E--F F--G
gorder(g)
[1] 7
gsize(g)
[1] 7
plot(g)

R 中的网络分析

Passons à la pratique !

R 中的网络分析

Preparing Video For Download...