Background

This is an example of an interactive dashboard built using R Markdown, flexdashboard, Plotly, and crosstalk.

It’s probably most useful to look at this in conjunction with the source code on GitHub and a blog post I wrote about some aspects of the implementation.

Number of flights
JanFebMarAprMayJunJulAugSepOctNovDec8.5k9k9.5k10k
All carriersFlights
Delayed flights
JanFebMarAprMayJunJulAugSepOctNovDec250030003500400045005000
All carriersDelayed flights
Top destinations by carrier
63973090210991422145535826059723472570200040006000LASMCOSTLSJUSFOBOSLAXORDMIADFW
n
Top destinations by carrier
2.0%2.2%2.8%3.4%4.3%4.4%10.9%18.5%22.1%22.2%0%5%10%15%20%LASMCOSTLSJUSFOBOSLAXORDMIADFW0.2%-2.0%1.5%1.6%0.4%-0.2%6.1%13.4%18.6%19.6%0%5%10%15%20%
AADifference from averageProportion of flightsPercentage points
Top destinations by carrier
85686491291494010131056107412491559639730902109914221455358260597234725797051172812055133311406414082155081617417215172837141406168819722731280028033161438364726563185821022129250128642903292936633875105711764177318261922201321142170250825454048685598642337342129316201722194821942276232224042691479411242419682010240732173342379658236819692469841633227142834716863211936521972580208298298431128413101401140414694113828231105k10k15kBWIRDUPHLORDMSPLASSTLSFOMIAFLLATLROCTPAPBICHSBNADENCAKCLEIAHPHXPSPMSYMDW
n
What is this?

This is a demonstration of how terribly wrong things can go if you don’t manage to set a default value for the controls on a page: before the user selects an airline, they can see all the data at once, which is really not what we want. The Top destinations page shows how it should work.