Practice in Network Visualization
Teen Wolf is a “supernatural teen drama” tv series that was aired on MTV from 2011-2017 (6 seasons total), and as such, is rife with relationship drama. See more on Wikipedia. I thought it would be a fun example to practice my network visualization skills.
Based on the information provided here, I hand-coded an adjacency matrix in Excel (and learned fun skills such as transposing a column and autofilling in a data selection), which I saved as a csv to import to R. I would like to expand this to include non-romantic relationships, but this is the pilot project (and I’m not sure how you’d code different types of relationships - as a weight, maybe?).
[1] "spec_tbl_df" "tbl_df" "tbl" "data.frame"
[1] 32 32
Network attributes:
vertices = 32
directed = FALSE
hyper = FALSE
loops = FALSE
multiple = FALSE
bipartite = FALSE
total edges= 24
missing edges= 0
non-missing edges= 24
Vertex attribute names:
vertex.names
No edge attributes
[1] FALSE
[1] FALSE
[1] FALSE
Some network structure:
[1] 8
[1] 12 2 5 4 2 2 3 2
That’s not a particularly pretty plot, so let’s try and make it prettier.
Marginally less ugly - let’s figure out those labels!
Unsurprisingly, this makes sense, in terms of this network being comprised of several independent components.