Editing Communication and Social Networks (Fall 2022)/Dutch School Data Visualization challenge
From CommunityData
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 24: | Line 24: | ||
Data: | Data: | ||
* [https://raw.githubusercontent.com/jdfoote/Communication-and-Social-Networks/ | * [https://raw.githubusercontent.com/jdfoote/Communication-and-Social-Networks/spring-2021/resources/school_graph_nodes.csv Node data] | ||
* [https://raw.githubusercontent.com/jdfoote/Communication-and-Social-Networks/ | * [https://raw.githubusercontent.com/jdfoote/Communication-and-Social-Networks/spring-2021/resources/school_graph_edges.csv Edge data] | ||
Descriptions of what each measure means are at [http://www.stats.ox.ac.uk/~snijders/siena/tutorial2010_data.htm this site], maintained by the people who collected the data. | Descriptions of what each measure means are at [http://www.stats.ox.ac.uk/~snijders/siena/tutorial2010_data.htm this site], maintained by the people who collected the data. | ||
Line 38: | Line 38: | ||
library(ggraph) | library(ggraph) | ||
nodes = read_csv('https://raw.githubusercontent.com/jdfoote/Communication-and-Social-Networks/ | nodes = read_csv('https://raw.githubusercontent.com/jdfoote/Communication-and-Social-Networks/spring-2021/resources/school_graph_nodes.csv') | ||
edges = read_csv('https://raw.githubusercontent.com/jdfoote/Communication-and-Social-Networks/ | edges = read_csv('https://raw.githubusercontent.com/jdfoote/Communication-and-Social-Networks/spring-2021/resources/school_graph_edges.csv') | ||
G = graph_from_data_frame(d=edges, v=nodes) %>% as_tbl_graph() | G = graph_from_data_frame(d=edges, v=nodes) %>% as_tbl_graph() | ||
</syntaxhighlight> | </syntaxhighlight> |