Wednesday, 6 July 2016

Visualising Game of Thrones using R

Exploratory analysis of GAME OF THRONES

Are you afraid? Good. You’re in the great game now – and the great game is terrifying.”

World of GOT >> several royal families desire the Iron Throne to gain control of Westeros. Whilst kingdoms fight each other for power, a sinister force lurks beyond the Wall in the North.


I have tried to find some insights about the complicated political landscape of this fantasy world using the visualization power of R.




Number of  houses Attack/Defend

Houses in GOT do not believe in the policy of defence being the strongest offense.



How often are there more than one Attacker/Defender

This clearly suggests that quite often of it is only one house who the shield's its post against the attack from multiple houses.


Number of Commanders leading their respective side

There is no significant difference between the commander on both the sides.




Major deaths by years

Most numbers of major deaths occurred in the year 299 which is not surprising as the most numbers of battles were also fought during this period.




Impact of Army Size on the outcome

It is clear that a bigger army for the defending side is not of a great help.The attacker mostly wins if he has a bigger army barring a few exceptions. The attacking side found themselves on the losing side even with the largest army ever in the history, in the Battle of Castle Black.(Stannis Baratheon V/S Mance Rayder)





Which pair fought the most number of battles(Houses)






Types of Battles/Region/Location

We see that most of the battles were fought in Riverland and the North.

SankeyID832470635a39
Data: data1 • Chart ID: SankeyID832470635a39googleVis-0.5.10
R version 3.1.2 (2014-10-31) • Google Terms of UseDocumentation and Data Policy



Proportion of Battles won by the attackers/Defenders

A Large proportion of  the battles were won by the attacking side.


Who is the strongest of them all

Lannisters are the strongest followed by the starks.House Greyjoy has faced a relatively lesser number of battles but has the has won 8 out of 11 battles.





Relation of survival and number of dead relatives

I was of the pretention that if the number of dead relatives is high then the chance of that person being dead will also be high but the relationship is exactly opposite of that.

Relation of Age popularity and no. of dead relations

The regression plane clearly indicates that a higher popularity is achieved if one is in the age group of 20-60 and has a good number of dead relatives.

Number of known characters in the series

Clearly house Lannister and stark has the most number of characters to it.Most of the known character come from a noble family. I am not surprised that the Nights Watch has a huge number of non-noble characters.

Gender imbalance in GOT

Currently, in the series, we may be witnessing female dominance when it comes to the popular character but in the whole series, there are very few know female characters.


Conclusion

Given ,every episode has a new twist and at the end, one finds his favourite character dead,it would be difficult for me to reach a certain conclusion . But having said that through my exploratory analysis I can surely say the TV series is no longer following the books.

R codes

https://www.dropbox.com/s/yf2cljr2g3q8jbd/GOT.R?dl=0

3 comments: