Skip to content

Tag: organizational networks

Network visualization in R with the igraph package

In this post I showed a visualization of the organizational network of my department. Since several people asked for details how the plot has been produced, I will provide the code and some extensions below. The plot has been done entirely in R (2.14.01) with the help of the igraph package. It is a great package but I found the documentation somewhat difficult to use, so hopefully this post can be a helpful introduction to network visualization with R. Here we go: # Load the igraph package (install if needed) require(igraph) # Data format. The data is in ‘edges’ format meaning that each row records a relationship (edge) between two people (vertices). # Additional attributes can be included. Here is an example: # Supervisor Examiner Grade Spec(ialization) # AA BD 6 X # BD CA 8 Y # AA DE 7 Y # … … … … # In this anonymized example, we have data on co-supervision with additional information about grades and specialization. # It is also possible to have the data in a matrix form (see the igraph documentation for details) # Load the data. The data needs to be loaded as a table first: bsk<-read.table(“http://www.dimiter.eu/Data_files/edgesdata3.txt”, sep=’t’, dec=’,’, header=T)#specify the path, separator(tab, comma, …), decimal point symbol, etc. # Transform the table into the required graph format: bsk.network<-graph.data.frame(bsk, directed=F) #the ‘directed’ attribute specifies whether the edges are directed # or equivelent irrespective of the position (1st vs 2nd column). For directed graphs use ‘directed=T’ # Inspect the data:…

The hidden structure of (academic) organizations

All organizations have a ‘deep’ hidden structure based on the social interactions among its members which might or might not coincide with the official formal one. University departments are no exception – if anything, the informal alliances, affinities, and allegiances within academic departments are only too visible and salient. Network analysis provides one way of visualizing and exploring the ‘deep’ organizational structure. In order to learn how to visualize small networks with R, I collected data on the social interactions within my own department and plugged the dataset in R (igraph package) to get the plot below. The figure shows the social network of my institute based on the co-supervision of student dissertations (each Master thesis has a supervisor who selects a so-called ‘second’ reader who reviews the draft and the two supervisors examine the student during the defence). So each link between nodes (people) is based on one joint supervision of a student. The total number of links (edges) is 264 which covers (approximately) all dissertations defended over the last year. In this version of the graph, the people are represented only by numbers but in the full version the actual names of people are plotted, the links are directional, and additional info (like the grade of the thesis) can be incorporated. Altogether, the organization appears surprisingly well-integrated. Most ‘outsiders’ and most weakly-connected ‘islands’ are either occasional external readers, or new colleagues being ‘socialized’ into the organization. Obviously, some people are more ‘central’ in the sense of connecting to a more diverse set of people, while others serve as boundary-spanners reaching…