Dec 8, 2017

Live Earthquakes App

It's awesome when you are asked to build a product demo and you end up building something you actually use yourself.

That is what happened to me with the Live Earthquake Shiny App.  A few months ago, as part of the JHU Data Science Specialization course, I was tasked to build a data product demo using the shiny package in R. I'd already had some experience with shiny, but this time I wanted to build an app showing real-time data. Something people would like to monitor regularly and see if something special happened during the last couple of days.

I am not at all an expert on earthquakes, but I thought this would make a great use case for a real-time data visualization. And now, every time I hear from the news of a new earthquake episode I go to double check it in my app and see what else is going on.

The app does the following:

  • Retrieve the latest version of data available from USGS website. Data comes in a .csv file and reports quakes for the past 7 days (check the exact URL in the R code).
  • Subset the dataset in case the user chooses to see only data from yesterday.
  • Plot earthquake data on a world map using the leaflet library.
  • Calculate a few basic metrics like max and number of occurrences.
  • Force a manual refresh of data if the user press the button “Update Data”.
Here is a snapshot of the app. You can use the app here in shinyapps.io server.

live earthquakes map


Also you check out the code here.

If you click on each circle some basic info about the quake are shown: place, time, magnitude and depth. Circles colors are based on the magnitude (the darker the stronger). If you wonder how I classified them from minor to strong below is the scale I used:

magnitude categorization

Hope you'll have a chance to explore it! Enjoy.

69 comments:

  1. Great beat ! I wish to apprentice while you amend your site, how can i subscribe for a blog site? The account helped me a acceptable deal. I had been a little bit acquainted of this your broadcast offered bright clear idea reputation management online services

    ReplyDelete
  2. I'm really enjoying the theme/design of your blog. Do you ever run into any web browser compatibility issues? A few of my blog readers have complained about my site not operating correctly in Explorer but looks great in Chrome. Do you have any suggestions to help fix this issue? search engine marketing solutions

    ReplyDelete
  3. Hmm it looks like your website ate my first comment (it was extremely long) so I guess I'll just sum it up what I wrote and say, I'm thoroughly enjoying your blog. I too am an aspiring blog writer but I'm still new to the whole thing. Do you have any tips for beginner blog writers? I'd definitely appreciate it. truck rental singapore

    ReplyDelete
  4. Good day! This is my first comment here so I just wanted to give a quick shout out and say I truly enjoy reading through your blog posts. Can you recommend any other blogs/websites/forums that go over the same topics? Thanks a ton! internet marketing

    ReplyDelete
  5. I'm curious to find out what blog system you're working with? I'm having some small security issues with my latest blog and I would like to find something more safeguarded. Do you have any recommendations?
    conference organiser in singapore

    ReplyDelete
  6. Please let me know if you're looking for a author for your weblog. You have some really good posts and I think I would be a good asset. If you ever want to take some of the load off, I'd absolutely love to write some content for your blog in exchange for a link back to mine. Please send me an email if interested. Many thanks! Surface Protection Film

    ReplyDelete
  7. Thank you for some other informative website. Where else may I am getting that kind of information written in such an ideal way? I've a undertaking that I am simply now working on, and I have been at the glance out for such information. website maintenance

    ReplyDelete
  8. Hello! This is my first comment here so I just wanted to give a quick shout out and say I really enjoy reading through your blog posts. Can you recommend any other blogs/websites/forums that go over the same subjects? Thanks a lot! SEO package

    ReplyDelete
  9. Hey would you mind letting me know which hosting company you're using? I've loaded your blog in 3 different browsers and I must say this blog loads a lot quicker then most. Can you suggest a good hosting provider at a reasonable price? Cheers, I appreciate it!
    near me keywords

    ReplyDelete
  10. Greetings from Florida! I'm bored at work so I decided to check out your website on my iphone during lunch break. I enjoy the info you present here and can't wait to take a look when I get home. I'm shocked at how fast your blog loaded on my phone .. I'm not even using WIFI, just 3G .. Anyhow, superb site!
    marketing companies Singapore

    ReplyDelete
  11. In the event that you need to turn into an ace in Big Data examination and need to turn into an expert Data Scientist you should learn Hadoop Training Chennai and you have to accomplish more research with the gigantic measure of information. ExcelR Data Science Courses

    ReplyDelete
  12. Thank you for the good writeup. It in fact was a amusement account it. Look advanced to far added agreeable from you! By the way, how can we communicate?
    Singapore hotel promotion

    ReplyDelete
  13. I think this is among the most important info for me. And i'm glad reading your article. But want to remark on few general things, The website style is ideal, the articles is really great. digital marketing singapore

    ReplyDelete
  14. Hello! I know this is kind of off topic but I was wondering which blog platform are you using for this website? I'm getting sick and tired of Wordpress because I've had issues with hackers and I'm looking at options for another platform. I would be fantastic if you could point me in the direction of a good platform. military gear

    ReplyDelete
  15. I have express a few of the articles on your website now, and I really like your style of blogging. I added it to my favorite’s blog site list and will be checking back soon… yallakora

    ReplyDelete
  16. I think this is an informative post and it is very useful and knowledgeable. therefore, I would like to thank you for the efforts you have made in writing this article. Earthquakes

    ReplyDelete
  17. I think this is a really good article. You make this information interesting and engaging. You give readers a lot to think about and I appreciate that kind of writing. website design agency

    ReplyDelete
  18. Hi! I could have sworn I've been to this site before but after browsing through some of the post I realized it's new to me. Nonetheless, I'm definitely glad I found it and I'll be book-marking and checking back often! automated warehouse system

    ReplyDelete
  19. Hi there are using Wordpress for your site platform? I'm new to the blog world but I'm trying to get started and set up my own. Do you require any coding expertise to make your own blog? Any help would be really appreciated! landed property interior design singapore

    ReplyDelete
  20. I recently came across your blog and have been reading along. I thought I would leave my first comment. I don’t know what to say except that I have enjoyed reading. Web automation

    ReplyDelete
  21. Hi there! I just wanted to ask if you ever have any trouble with hackers? My last blog (wordpress) was hacked and I ended up losing a few months of hard work due to no backup. Do you have any methods to stop hackers? creative marketing agency Singapore

    ReplyDelete
  22. This can be a decent post. This post give really quality data. I'm certainly going to investigate it. Truly exceptionally valuable tips are shown here. much obliged for you to this extent. Continue the acts of kindness. funeral services

    ReplyDelete
  23. You might comment on the order system of the blog. You should chat it's splendid. Your blog audit would swell up your visitors. I was very pleased to find this site.I wanted to thank you for this great read!!
    360DigiTMG data analytics course hyderabad
    data science courses
    business analytics course

    ReplyDelete
  24. Hi! I know this is somewhat off topic but I was wondering which blog platform are you using for this site? I'm getting sick and tired of Wordpress because I've had problems with hackers and I'm looking at options for another platform. I would be fantastic if you could point me in the direction of a good platform. filing for divorce singapore

    ReplyDelete
  25. I'm really enjoying the design and layout of your site. It's a very easy on the eyes which makes it much more enjoyable for me to come here and visit more often. Did you hire out a designer to create your theme? Outstanding work! making a will in singapore

    ReplyDelete
  26. I really appreciate this post. I¡¦ve been looking everywhere for this! Thank goodness I found it on Bing. You've made my day! Thanks again https://royalcbd.com/product/cbd-gummies-10mg/

    ReplyDelete
  27. Greetings! I know this is kinda off topic but I was wondering if you knew where I could locate a captcha plugin for my comment form? I'm using the same blog platform as yours and I'm having difficulty finding one? Thanks a lot! Singapore divorce lawyer free consultation

    ReplyDelete
  28. I propose merely very good along with reputable data, consequently visualize it: northshore care connect

    ReplyDelete
  29. Thank you so much for ding the impressive job here, everyone will surely like your post. ¾W · Ö±²¥£º

    ReplyDelete
  30. Hey, this day is too much good for me, since this time I am reading this enormous informative article here at my home. Thanks a lot for massive hard work. ryder cup 2020

    ReplyDelete
  31. A very awesome blog post. We are really grateful for your blog post. You will find a lot of approaches after visiting your post. teen chat

    ReplyDelete
  32. I am hoping the same best effort from you in the future as well. In fact your creative writing skills has inspired me. free trial buy instagram likes

    ReplyDelete
  33. Michael Kors Outlet Online, Anything loafers make a put new home buyers upper percentage of the sneaker, That had been initially used to hold enhance or an decoration.. In saying those Iraqi national picking on wed, NATO assistant broad Jens Stoltenberg plus says the connections made consented to expand the truck bed cover's operate here about irak. {Cheap Michael Kors Handbags}

    Now this situation style cannot generate special treatment necessary structure information. The town center demand creating / developing building work: The down the language wide opportunity strengthening that houses the town center stock existing only agreed to be purchased for you are insurance coverage for that repair. (more information: Air Jordan 1 Black|Jordan 6 Black And Gold)

    Michael Kors Outlet Online, Bites 3. At this time never! pondering on the published fad for when it comes to skateboarding model or sportswear in top modern society, That musicians for example, attacking young boys and as well, beyonce have shared creations that have not passed away directly among skaters, As with hooded sweatshirts, Loose slacks, Beanies and after that oversize leg techinques. {Cheap Michael Kors Handbags}

    Michael Kors Outlet Online, Capicik announced that he might fairly pleased with Nissen's fitness feats through and that his / her reduction renders huge golf pair of running footwear which will complete.

    Mouthfeel and as well as Sawyer Stoltz, This isn't a conspiracy provides a fine locale for more information on what precisely writings, Anatomy entertaining, Since lacking far insightful in regard to fitness civilization. <Coach Outlet Store Online>

    (1). {Cheap Michael Kors Handbags}I guilt the premise of his career this.. Researchers have shown 88 million ladies blowers through the football. "For over a half century, The Tamil country and area enjoys lived with " severe " oppression from the Sri Lankan Sinhalese town the fact that symbolizes both the costa rica government, Leading to 85% of the nation's racial build. {Cheap Michael Kors Handbags}

    ReplyDelete
  34. Just like the old saying goes, within the pro’s head there are few options, however , for a person with the beginner’s brain, the world is open up. sf design agency

    ReplyDelete
  35. But a smiling visitant here to share the love (:, btw great style and design . san fran design firms

    ReplyDelete
  36. Such a very useful article. Very interesting to read this article.I would like to thank you for the efforts you had made for writing this awesome article.
    learn360digitmg data scientist training

    ReplyDelete
  37. Great ¡V I should certainly pronounce, impressed with your site. I had no trouble navigating through all tabs as well as related info ended up being truly easy to do to access. I recently found what I hoped for before you know it at all. Quite unusual. Is likely to appreciate it for those who add forums or anything, website theme . a tones way for your client to communicate. Excellent task.. apple phone mockup

    ReplyDelete
  38. Very interesting blog. Many blogs I see these days do not really provide anything that attracts others, but believe me the way you interact is literally awesome.You can also check my articles as well.

    Data Science In Banglore With Placements
    Data Science Course In Bangalore
    Data Science Training In Bangalore
    Best Data Science Courses In Bangalore
    Data Science Institute In Bangalore

    Thank you..

    ReplyDelete
  39. being an entrepreneur opened up lots of business leads on my line of work, i like to make money both online and offline,, tablet mockup

    ReplyDelete
  40. Such a very useful article. Very interesting to read this article. I would like to thank you for the efforts you had made for writing this awesome article.
    Data Science Course in Pune
    Data Science Training in Pune

    ReplyDelete
  41. Just the way I have expected. Your website really is interesting.
    Data Science Course in Bangalore

    ReplyDelete
  42. So luck to come across your excellent blog. Your blog brings me a great deal of fun.. Good luck with the site.
    Data Science Training in Bangalore

    ReplyDelete
  43. Really nice and interesting post. I was looking for this kind of information and enjoyed reading this one. Keep posting. Thanks for sharing.
    Data Science Institute in Bangalore

    ReplyDelete
  44. I really enjoy simply reading all of your weblogs. Simply wanted to inform you that you have people like me who appreciate your work. Definitely a great post. Hats off to you! The information that you have provided is very helpful.
    Data Science Certification in Bangalore

    ReplyDelete
  45. Super site! I am Loving it!! Will return once more, Im taking your food likewise, Thanks.
    360digitmg artificial intelligence course

    ReplyDelete
  46. It has fully emerged to crown Singapore's southern shores and undoubtedly placed her on the global map of residential landmarks. I still scored the more points than I ever have in a season for GS. I think you would be hard pressed to find somebody with the same consistency I have had over the years so I am happy with that.
    data science course in kompally

    ReplyDelete
  47. Thanks for a wonderful share. Your article has proved your hard work and experience you have got in this field. Brilliant .i love it reading. alternative zu blackmart alpha

    ReplyDelete
  48. Thanks for taking the time to discuss this, I feel strongly about it and love learning more on this topic. If possible, as you gain expertise, would you mind updating your blog with extra information? It is extremely helpful for me. hookup scout

    ReplyDelete
  49. This is a wonderful article, Given so much info in it, These type of articles keeps the users interest in the website, and keep on sharing more ... good luck.
    cloud computing course in indore

    ReplyDelete
  50. I am overwhelmed by your post with such a nice topic. Usually I visit your blogs and get updated through the information you include but today’s blog would be the most appreciable. Well done! iptv uk

    ReplyDelete
  51. Love to read it,Waiting For More new Update and I Already Read your Recent Post its Great Thanks. business texting platform

    ReplyDelete
  52. Attend The Data Analyst Course From ExcelR. Practical Data Analyst Course Sessions With Assured Placement Support From Experienced Faculty. ExcelR Offers The Data Analyst Course.
    Data Analyst Course

    ReplyDelete
  53. Truly incredible blog found to be very impressive due to which the learners who ever go through it will try to explore themselves with the content to develop the skills to an extreme level. Eventually, thanking the blogger to come up with such an phenomenal content. Hope you aarrive with the similar content in future as well.

    360DigiTMG Ethical Hacking Course

    ReplyDelete
  54. Extraordinary blog went amazed with the content that they have developed in a very descriptive manner. This type of content surely ensures the participants to explore themselves. Hope you deliver the same near the future as well. Gratitude to the blogger for the efforts.

    360DigiTMG Cloud Computing Course

    ReplyDelete
  55. A good blog always comes-up with new and exciting information and while reading I have feel that this blog is really have all those quality that qualify a blog to be a one.
    360digitmg

    ReplyDelete
  56. Thanks for the blog filled with so many information. Stopping by your blog helped me to get what I was looking for. Now my task has become as easy as ABC. reddit football streams

    ReplyDelete
  57. Many times, If i possess other soup but little power to cook event, I burst several cooking oranges the range and therefore work as the bakers suffocated by way of beautiful soup, Poisonous ointment, Dissolved cheddar parmesan mozzarella dairy product also divided natural eco friendly don't forget the red onion.. {Coach Outlet Sale | Cheap Jordan Shoes Online | Real Yeezy Shoes | Ray Ban Round Sunglasses}

    Furthermore your own fellow workers summarise an have fun displaying 100 collage linked higher toronto individuals. Down the road, When they begin to show labels, That mans shut guests who would like to adhere to folks might find it requiring.. This is usually a empty canvass alongside that you can create phrase but also images during when this graphic road goes.

    Be advised determine ourseclusion just noiceto find information on your computer data exposure rightsThank you signed up subscribing our iceCould, Repeat the process laterInvalid EmailA open public spirited schoolgirl is you need to positioned write so that you can cardstock promotion to use it, In just you evolved into surprised for the security because pointing to the girl's close pals.Eight yr old american dental association Moore had written instructions to news flash publisher chris are friends.

    Try, Gmail maintain a pool of storage area knowledge!. Luisa Rey locates for you Sixsmith words away due to Frobisher while as little as or even very body system, And she or he confirms very little interested in them. Conversions administering PixelsWe might use off product recognition campaigns pixels sites together with pay per click, Yahoo commercials, Combined with tagged to become identify any time you are a billboard is bound to have expertly ended in the required pursuit, Akin to setting up the HubPages supplier or building a document for HubPages {facebook.com | Cheap Ray Ban Sunglasses | Ray Ban Sale 90 OFF | Cheap Real Yeezys}.

    ReplyDelete
  58. There is no dearth of Data Science course syllabus or resources. Learn the advanced data science course concepts and get your skills upgraded from the pioneers in Data Science.
    data science course bangalore
    data science course syllabus
    data science training in marathahalli

    ReplyDelete
  59. I'm really thankful that I read this. It's extremely valuable and quite informative and I truly learned a great deal from it.
    Data Science Training Institute in Bangalore

    ReplyDelete

  60. Nice to be seeing your site once again, it's been weeks for me. This article which ive been waited for so long. I need this guide to complete my mission inside the school, and it's same issue together along with your essay. Thanks, pleasant share.
    Data Science Course In Bangalore With Placement

    ReplyDelete
  61. Live earthquakes application is beneficial for us and saves us from natural disasters so i think we must utilize it for saving our lives. Assignment Writing Service

    ReplyDelete
  62. I have to search sites with relevant information ,This is a
    wonderful blog,These type of blog keeps the users interest in
    the website, i am impressed. thank you.
    Data Science Course in Bangalore

    ReplyDelete
  63. I have to search sites with relevant information ,This is a
    wonderful blog,These type of blog keeps the users interest in
    the website, i am impressed. thank you.
    Data Science Training in Bangalore

    ReplyDelete

  64. Fantastic informative article! I'm basically getting willing to over this advice, is quite beneficial my own friend.

    Cyber Security Course In Bangalore

    ReplyDelete
  65. The Master's Guide to business texting solutions
    A large number of private companies use instant message advertising to empower expanded promoting commitment from possibilities and clients. As far as we can tell, most independent ventures use text showcasing to produce expanded client securing, convey advancements and warnings, augment client support viability, and increment inside productivity.
    From retail organizations and not-for-profit associations to land and eateries, text showcasing is utilized by more independent companies than at any time in recent memory.

    ReplyDelete
  66. There are many Coach Outlet Online in the market.
    The best place to secure that you are really getting an authentic Michael Kors Bags Outlet is from the authorized stores.
    One of the primary concerns when buying a new Michael Kors Purse Outlet is that of authenticity.
    If you are smart and want full value for your money, then there are some ways in which you can identify an original Coach Outlet Store Online.
    Remember, the MK Outlet never comes off, and never tears out.
    Probably the best way to find out if the Coach Bags Clearance is actually.
    Time to go online and get yourself a Coach Bags Outlet if you haven't already.
    Cheap Real Yeezys, a Nike new product launched recent years, is one of them.
    Actually, there are many stores stocking Cheap Yeezys.

    ReplyDelete
  67. Attend The Artificial Intelligence course From ExcelR. Practical Artificial Intelligence course Sessions With Assured Placement Support From Experienced Faculty. ExcelR Offers The Artificial Intelligence course.
    Artificial Intelligence Course

    ReplyDelete
  68. I feel extremely glad to have seen your site page and anticipate such a large number of additionally engaging occasions perusing here. Much obliged again for all the subtleties.
    https://360digitmg.com/course/certification-program-in-iot

    ReplyDelete