Module # 12 Social Network Analysis

 

Social Network Analysis in RStudio

1) This week we have something pretty simple. Get a Social Network visualization to display on RStudio. We were even given the code for this to run. Lets go and take a look at it








2) The code that was given was actually missing a few packages that need to be downloaded first in order to work but that is all that was missing. Taking a look at the code we can dissect a few things that control visual that it creates. The code actually generates a social network analysis (SNA) visualization using GGally's ggnet2. It creates a random undirected network graph with 10 nodes and visualizes it. Here’s what each part does: "rgraph" generates a random adjacency matrix for the graph. "network" converts it into a network object. "network.vertex.names" assigns labels a-j to the nodes. "ggnet2" creates the plot with customizable node and edge aesthetics. The result is a customizable network diagram where nodes represent entities and edges their connections.


3) Overall I think that making this social network visual came out to be a success. I know that this is a short post, but that is all I have for this week. I hope you enjoyed.  

Comments