Daylight in Vancouver (Canada) vs Tokyo (Japan)

(This article was first published on R on Chi's Impe[r]fect Blog, and kindly contributed to R-bloggers)

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.

To leave a comment for the author, please follow the link and comment on their blog: R on Chi's Impe[r]fect Blog. 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...

Comments are closed.

Search R-bloggers


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)