Advertisement
BenjaminLind

Social network analysis founders' influences (& plot)

Jul 10th, 2013
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
R 0.85 KB | None | 0 0
  1. library(RCurl); library(igraph)
  2.  
  3. found.infl<-getURL("https://docs.google.com/spreadsheet/pub?key=0Ai--oOZQWBHSdE9FdGc0dGFvX2F5NGRzVnZ3RkZrdXc&output=txt", ssl.verifypeer=FALSE)
  4. #Source: Freeman, Linton C. The Development of Social Network Analysis: A Study in the Sociology of Science. Empirical Press. p. 131
  5. #Edges signify that the receiver was influenced by the sender.
  6. #Only those who receive ties were interviewed in the study.
  7.  
  8. found.infl<-as.matrix(read.table(textConnection(found.infl), sep="\t", header=TRUE))
  9. found.infl<-graph.edgelist(found.infl)
  10.  
  11. plot(found.infl, vertex.size=8, edge.arrow.size=.35, vertex.color=rev(rainbow(2, s=.7, v=.7, alpha=.7))[1+(degree(found.infl, mode="in")>0)], vertex.label.cex=.7, vertex.label.family="sans", vertex.label.color="black", vertex.label.dist=0, layout=layout.kamada.kawai(found.infl, params=list(niter=5000)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement