Mapping airline flight networks with R

May 5, 2011
By

(This article was first published on Revolutions, and kindly contributed to R-bloggers)

Inspired by the Facebook Social Network chart, FlowingData's Nathan Yau also turns to R to create a beautiful chart of the network of all flight connections between major airlines in the US:

All airlines network

Like the Facebook chart, the chart reflects the intensity of the connections (here, the number of flights) between pairs of cities. Nathan explains:

Brighter lines represent more arriving and departing flights between the two endpoints, and blue lines are the flights with heaviest traffic. Coloring is relative to within the airline as opposed to overall flight count.

You've probably glanced at the back of the airline magazine to see the network of one carrier at a time, but this chart aggregates data from all the major US airlines. Nonetheless, Nathan also also breaks down the charts by airline, and played a fun game on Twitter to guess the airline from the network. I shamelessly rip off the idea here: guess the airline from the charts below, and see the answers after the jump. (Click the images to enlarge.)

A: What airline is this?

Airline A

 

B: What airline is this?

Airline B

C: What airline is this?

Airline C

(Answers after the jump.)

FlowingData: Flight geography: Where do major airlines fly?

Answers:

A. Delta
B. Alaska
C. Southwest 

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 on topics such as: Data science, Big Data, R jobs, visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...



If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Tags: ,

Comments are closed.

Search R-bloggers


Sponsors

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)