Module # 12 Social Network assignment

The information provided on social networking was very interesting. For me it was challenging to create the visual NodeXL so I tried the code provided in R.

I tried the code provided but I kept getting an error message.

This was the code I was using.

net = rgraph(10, mode = “graph”, tprob = 0.5) net = network(net, directed = FALSE)
Error: unexpected symbol in “net = rgraph(10, mode = “graph”, tprob = 0.5) net”
> network.vertex.names(net) = letters[1:10]
Error in network.vertex.names(net) = letters[1:10] :
object ‘net’ not found
> ggnet2(net)
Error in ggnet2(net) : object ‘net’ not found
> ggnet2(net, node.size = 6, node.color = “black”, edge.size = 1, edge.color = “grey”)
Error in ggnet2(net, node.size = 6, node.color = “black”, edge.size = 1, :
object ‘net’ not found

I could not figure out the issue with code.

Screen Shot 2019-03-31 at 10.29.52 PM

The success I had was using the code with ggplot2. I think the website provide gave really good information and provided all of the right steps to get the visual.

Social network visualization can be challenging and I think one of the things that is really helpful is the labeling.

Screen Shot 2019-03-31 at 10.47.40 PM.png

Leave a comment