Kung Fu R

[This article was first published on Revolutions, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

A great way to hone your skills as a data scientist is to pick a topic you're passionate about, find some data related to it, and analyze the heck out of it. Jim Vallandingham is clearly passionate about old Kung Fu movies — particularly those from the Shaw Brothers Studio — and has used R to analyze data the studio's oeuvre: 260 films over 22 years.

The complete R code behind the analysis is included in the post (and you can also find it as an R Markdown document here). Some interesting notes include:

  • Use of the tidyjson package to parse the table scraped from the list of Shaw Brothers Martial Arts Films on Letterboxd.
  • Many applications of the ggplot2 package to visualize directors, actors, film length, Letterboxd watches and likes, and other data about the films.
  • Using the tidytext package to find the common words used in film titles.
  • Using the igraph package to create a network digram showing actors who appear in films together, shown below.


You can even iteract with this network, using Jim's Shaw Brothers Actors Network Visualization. The interactive version is based on Javascript and D3, and this tutorial explains how it was made. But for the complete analysis of the Kung Fu movies, follow the link below.

Jim Vallandingham: A Data Driven Exploration of Kung Fu Films

To leave a comment for the author, please follow the link and comment on their blog: Revolutions.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)