Daylight in Vancouver (Canada) vs Tokyo (Japan)

Daylight differences between Vancouver & Tokyo visualized with ggplot2


2 minute read

I currently live in British Columbia, Canada. So I live above 49th parallel line. One of things that’s pretty awesome living up north is the fact you get so much longer daylights in summer time! Currently it’s May, and I’m just in love with longer daylight we are getting day by day (well till June 21st)!

Recently I came across R package called suncalc, so I had to try out using the package to pull the timetable for sunrise & sunset for different locations and visualize the result using ggplot2.

🇨🇦 Vancouver 2018 Daylight Visualized ☀️

For Vancouver - I used coordinate 49.2827° N, 123.1207° W 🌎

I’ve coloured nighttime with dark blue colour, while I’ve coloured day time with light yellow-ish colour using geom_ribbon.

The latest sunset Vancouver will observe is June 25th! It’s not same as the longest daylight. Earliest I’d have to wake up to catch sunrise is June 16th at 5:07am. 😀

🇯🇵 Tokyo 2018 Daylight Visualized ☀️

For Tokyo - I used coordinate 35.6895° N, 139.6917° E 🌏

Japan does not practice daylight savings, so there’s no glitch in March and November, the line is smooth in below chart. The earliest sunrise Tokyo gets is 4:26am on June 13th. This makes me think Japan could actually benefit from practiving daylight savings, so that sunrise is delayed till 5:26am, while they can enjoy the sun as late as 8pm in June!

Sunrise & Sunset Time Compared for Vancouver and Tokyo�

And here’s sunrise & sunset time compared against two cities.