Editing Communication and Social Networks (Spring 2020)/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 8: | Line 8: | ||
* Are people of the dominant religion more likely to be popular? More likely to be friends with each other? | * Are people of the dominant religion more likely to be popular? More likely to be friends with each other? | ||
I created | I created [https://github.com/jdfoote/Communication-and-Social-Networks/raw/master/activities/school_data_example.Rmd this R file] to show an A+ example, to give you ideas, and some code that you might want to repurpose. | ||
There are lots of different questions that you can ask about this data, and lots of different ways to visualize relationships between them. Your goal is to identify a question that you think would be interesting and to use R to visualize the network in a way that sheds light on that question. I decided to look at whether friendships which were mutual were more likely to have the same drinking behavior. I ended up coloring the nodes based on drinking behavior and coloring the edges based on whether they had the same drinking behavior. | |||
== The data == | |||
'''Right-click [https://github.com/jdfoote/Communication-and-Social-Networks/raw/master/activities/network_visualization_examples_and_assignment.Rmd this link]''' and open it in RStudio. At the top of RStudio click "knit", and it should open up something that looks kind of like a web page, which was created from this file ([https://youtu.be/tKUufzpoHDE video explaining R Markdown]). It includes example code for making network visualizations, and also includes code for loading the data for this assignment. | |||
The R Markdown file linked above explains that I created 2 igraph objects for you: | The R Markdown file linked above explains that I created 2 igraph objects for you: | ||
Line 31: | Line 28: | ||
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. | ||