Skip to content

Commit

Permalink
Update visualizations.html
Browse files Browse the repository at this point in the history
  • Loading branch information
gilliansmac92 committed Nov 20, 2024
1 parent a1f4022 commit e4acd87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions visualizations.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ <h4>Methodology</h4>
<p>Phase one required turning qualitative data into quantitative data. We started by recording all of the pertinent data from the PDF version of the Leven and Melville Papers. We then turned this data into spreadsheet data, here we used categories: Id, Sender, Receiver, Location from, Location to, Latitude and Longitude, Type and Date. This allowed us to parse the networking data in the form of nodes and edges. The data was then cleaned using OpenRefine to split up latitude and longitude and keywords into different columns; we also made sure there were no blank tiles and duplicates. After creating a master spreadsheet information file, we then set about creating different sheets for different visualizations including people, places, keywords, nodes, and then edges (relationships). We were able to get all the data from the 599 letters contained in the digitized copy of the Leven and Melville papers into a csv file. Given the large dataset of Network Letters, it allowed for exploratory data analysis and investigation on different digital tools to identify the best representation of the relationships presented in the papers. One of the main tools we ended up using was the programming language Python; which contains a large number of libraries that extend the capabilities of the language, allowing for complex visualizations of the Network Data. One of the most prominent libraries used was networkx, which allowed the creation of network graphs along with the application of the Girvan-Newman algorithm to detect communities within the network. This algorithm works by repeatedly removing edges on the shortest path within the network. Additionally, the nodes are given corresponding colors to highlight their community, enabling an easier identification of groups in the network. The algorithm is important for understanding the network graph because a node with higher betweenness centrality would have more control over the network, due to the fact that more information will pass through that node. The implementation of these libraries and creation of visuals were carried out on Jupyter notebook, which is an open-source software for interactive computing. In addition, we experimented with tools such as Leaflet, Flourish, and Gephi for further analysis of the letters.</p>
<h4>Degree Centrality</h4>
<figure>
<img align="right" style="margin: 10px" src="data/images/centered-nodes.png" width="300" height="400">
<img align="right" style="margin: 10px" src="data/images/centered-nodes.png" width="450" height="400">
<p>Our exploration began with a degree centrality analysis of the letter corpus. This is a calculation of the number of edges or connections of a singular node. Degree centrality is the easiest calculation of the significance of the node on the network i.e. where it is structurally important and often reveals clusters that dominate the network. Unsurprisingly Melville has the largest centrality count of 499, he is followed by Crawford with a score of 87, Hamilton with a score of 56, and John Dalrymple of Stair with 46.</p>
</figure>
<h5>Most Connected Nodes</h5>
Expand All @@ -74,7 +74,7 @@ <h5>Most Connected Nodes</h5>
<p>The subplots here show quarterly accounts of the communications in the <i>Leven and Melville Papers</i> over the course of the revolutionary period. The plots which match Melville - in purple or violet - are all directly connected to Melville and either sent or received a letter from him. Those nodes in other colors are the outliers that either corresponded only with another node in the collection or are letters that were intercepted by the Secrtary of State's employees. As Melville's network becomes denser, his receiving node grows in size, indicating that he received more letters over time. This correspondense activity reached its peak density in the fourth quarter of 1690 and maintained that denstiy throughout 1691. The Earl of Leven on the graph is also connected to Melville since they are related and exchanged letters. They are also indirectly connected by multiple bridges and social spheres different social spheres. For example, the Duke of Hamilton as High Commissioner to the Scottish Parliament in 1689, acts as a bridge between them. The plots are also directional and show the direction of communications as Melville appears as both a node for sending and receiving letters. Melville received 447 letters over the course of the corpus but only sent 31 whereas the Earl of Crawford sent 81 letters and received 6 (but this might speak more to the practices of privacy between elite correspondence in the 17th century).</p>
<h4>Geography and Place</h4>
<figure>
<img align="right" style="margin: 10px" src="data/images/Leafletnetworkmap.png" width="400" height="300">
<img align="right" style="margin: 10px" src="data/images/Leafletnetworkmap.png" width="500" height="300">
<p>Despite the fact that William never set foot in Scotland, the considerable two-way flow of correspondence between Edinburgh and London, combined with the numerous journeys made by officers of state, meant that he had a great deal of information about the situation in Scotland and was able to relay instructions to his Scottish counterparts. The high traffic of post and letters referring to the situation in Scotland suggests that the secretaries stayed in frequent contact with their counterparts in Edinburgh. One of the things that is evident from the graph produced by the Leaflet libraries is that the network expanded more than just Scotland and England, letters in Melville's corpus ranged from Dublin and Ballyhara in Ireland to Brussells and Gerpines on the continent. The largest clusters were in Edinburgh and London which is unsurprising since William's most important ministers resided in the respective captials and centers of governance. </p>
<p>Smaller clusters existed at Tarbat and Inverlochy/Fort William which became a very important node of the military campaign from 1690 to 1691. A flurry of letters and a memorial to Melville from the Viscount of Tarbat between June and July in 1689 accounts for another smaller cluster. Tarbat had been part of James' cabinet and was exonerated by William, therefore wrote to Melville often offering advice and opinions on the church and governance. Clusters in London tended to center on Hampton Court and Kensington where the King tended to be. The cluster in Ireland can be accounted for both by the intercepted letters from James and William's travels before and after the Battle of the Boyne.</p>
</div>
Expand Down

0 comments on commit e4acd87

Please sign in to comment.