Sunday, March 12, 2023

Creating Powerful Visualizations with R - Only 9 Lines of Code

I downloaded international flight data from Openflight.org for January 2017 and created compelling visualizations based on the flight frequency by country using only 9 lines of R code. My goal was to achieve both effectiveness and efficiency in my visualizations.

Raw Data (https://raw.githubusercontent.com/jpatokal/openflights/master/data/airports.dat)










R Code (Only 9 Lines without Comments and Blank Lines)














Plot Based on Raw Data














Bar Plot Based on Top 100 Countries by Flight Frequency (Sorted in Descending Order)


Bar Plot Based on Top 10 Countries by Flight Frequency (Sorted in Descending Order)



No comments:

Post a Comment

Brian Lee's Video Intro - Apr. 2023

  ** features light background music