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]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

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.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

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)