Weather for 24 International Cities
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE
README.md
beijing.csv
capetown.csv
delhi.csv
edmonton.csv
hongkong.csv
international.R
intlcities.R
jakarta.csv
lagos.csv
lima.csv
london.csv
mcmurdo.csv
mecca.csv
melbourne.csv
mexcity.csv
moscow.csv
nairobi.csv
novosibirsk.csv
nyc.csv
puntaarenas.csv
reykjavik.csv
rome.csv
saopaulo.csv
stockholm.csv
tehran.csv
tokyo.csv
yakutsk.csv
z_theme.r
z_theme_hmap.r

README.md

Weather for 24 International Cities

Basic information

  • Data scraped from Weather Underground.
  • Plotted using Rstudio/ggplot2.

All data taken from the city's nearest airport.

Total downloaded file size is about 30MB. Play with international.R. Remember to set the correct directory using the setwd() command at the top of the code. I have not included the code I used to scrape Wunderground, mostly because:

  • (a) it would probably tick off the website owner if I initiated a Hug of Death,
  • (b) the .csv files are already present so what's the point,
  • (c) it only works for Linux (scrapes via wget), and
  • (d) it's very poorly written garbage that nobody should use anyway.

weather-indiv.R is for individual plots, but make sure you read the commented lines.

A few of these plots on the Temperature plot will have "Grey areas" which indicate that the data is out-of-range. So basically too hot or too cold. You can fix this by changing the scale limits, but it makes the other cities a little less beautiful, so I decided against.

If you're wondering how it's possible to have humidity below water's freezing temperature, you should read this paper [PDF].

Full Plot Gallery

Average Daily Temp for International Cities

Temperature and Humidity Profile for International Cities

Individual cities

I picked the 24 cities based on a balancing act of the following criteria:

  • Cities with data-rich sources (some of the best historic data happens to be provided by international airports in the US, so I exclusively used those)
  • Cities with high populations (helps with the international airport thing too)
  • Cities that are evenly spread throughout the geography of the US. Here's a map of the international cities I used.
  • Cool (and, well, hot) anomalies like Alaska, Hawaii, and Siberia.

Individual Plots (Gallery)

Below are individualized plots for 24 of the cities on this file, plus a few more I peppered in after planning to use them and then deciding otherwise. If you want to request me to do a city, send me a message and I'll see what I can do when I have the time. Feel free to repost these to your city's subreddit; just give attribution.

Beijing, Cape Town, Edmonton, Hong Kong, Jakarta, Lagos, Lima, London, McMurdo Station, Mecca, Melbourne, Mexico City, Moscow, Nairobi, New Delhi, Novosibirsk, Punta Arenas, Reykjavic, Rome, Sao Paulo, Stockholm, Tehran, Tokyo, Yakutsk

Alternate Plots

In addition to these plots, I was able to get some alternate plotting done:

  • I was going to do an alt-plot that adjusted for wind chill and heat index, but it looked like it might have been painfully time consuming to tabulate. Perhaps another Redditor can use the data to mess with Texas.

Other Information: