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 19, 2024
1 parent 51625f9 commit 309825b
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions visualizations.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,14 @@ <h3 style="text-align: center;">Visualizations</h3>
<p>This project is a marriage of early modern Scottish history and computational data science. It brings together methods of network science, prosopography, and traditional early modern political history surrounding communication. The visualizations show a story of connectivity over time. We chose this particular corpus of letters because <i>Leven and Melville Papers</i> do a very good job at capturing the difficulties in the reconstruction and administration of Scottish governance during such a chaotic period. </p>
<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>Most Connected Nodes</h4>
<h4>Degree Centrality</h4>
<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>
<h4>Most Connected Nodes</h4>
<p>What we have found within this corpus is 123 unique senders and receivers; each was assigned metadata in the form of their allegiance, cabinet position, and weight. We found 554 individual letters, packets, orders, sets of instructions, declarations, commissions, attestations, memorials, intercepted letters, and more. The corpus also contained 72 places of origin and target which were then geocoded. We aregues similarly to Ruth and Sebastian Ahnert's suggestions that network hubs correspond broadly with the centers of government.<sup>1</sup> This also includes somewhat symbolic hubs of the monarch and the principal secretaries. There are imbalances present throughout the corpus especially since more letters received survive than letters sent. If there was a complete record of the correspondence there would be less imbalance. There are also intercepted letters present in the collection which might account for some of the anomalies in the network.</p>
<p>After some initial calculations and experimentations, we argue that based on the letters contained in the corpus the most connected nodes are Melville, King William, Queen Mary, William Lockhart, the Earl of Crawford, the Earl of Leven, Colonel Hill, and the Privy Council. This is unsurprising since the monarch and their principal secretaries tend to be the same epistolary hub. The Earl of Crawford and the Privy Council served as the primary contacts for the Scottish administration for much of the time period. William Lockhart served as Solicitor General for Scotland from 1689 to 1693 and was the King's principal legal advisor for Scottish affairs. Leven and Hill served as the governors of Edinburgh Castle and Fort William (Inverlochy) and had many military connections and networks. </p>
<p>That these are the most connected nodes speaks to the amount of letters that were exchanged about the evolving situation in Scotland. Despite instructions contained within many of the letters, which told the receiver to burn the letter received, correspondence from the period has survived. In aggregate it shows that despite previous assertions that William was not interested what was going on in his northern kingdom we can argue that this seems not to be the case. </p>
<p>After some initial calculations and experimentations, we argue that based on the letters contained in the corpus the most connected nodes are Melville, King William, Queen Mary, William Lockhart, the Earl of Crawford, the Earl of Leven, Colonel Hill, and the Privy Council. This is unsurprising since the monarch and their principal secretaries tend to be the same epistolary hub. The Earl of Crawford and the Privy Council served as the primary contacts for the Scottish administration for much of the time period. William Lockhart served as Solicitor General for Scotland from 1689 to 1693 and was the King's principal legal advisor for Scottish affairs. Leven and Hill served as the governors of Edinburgh Castle and Fort William (Inverlochy) and had many military connections and networks. That these are the most connected nodes speaks to the amount of letters that were exchanged about the evolving situation in Scotland. Despite instructions contained within many of the letters, which told the receiver to burn the letter received, correspondence from the period has survived. In aggregate it shows that despite previous assertions that William was not interested what was going on in his northern kingdom we can argue that this seems not to be the case. </p>
<p>The quarterly visualization shows just how connected the people in this corpus of letters were over the course of three years. Lord Melville is depicted by the large purple node present in each diagram as both a sender and a receiver of letters – since he is either the letter writer or letter receiver in 510 of the 599 documents within the corpus. As a node, Melville has the highest infrastructural role in the network, followed by the Duke of Hamilton (High Commissioner to the Scottish Parliament), his successor the Earl of Crawford, and then the monarch himself. The diagrams also indicate an increased density of networks over time. It also shows the density of specifically the Williamite network since the early part of 1689 contained many Jacobite sympathizers (which is why we see the Viscount of Dundee, James's military general and Lord Murray), and their names seem to disappear over time while Melville's centrality to the network grows as we see his purple node growing larger from 1689 through 1691. It also becomes clear that Melville is an imortant bridge from one network to another, as the Secretary of State for Scotland this is somewhat unsurprising.</p>
<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>Degree Centrality</h4>
<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>
<h4>Geography and place</h4>
<h4>Geography and place</h4>
<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>

Expand Down

0 comments on commit 309825b

Please sign in to comment.