Dynamically annotate graphs with Shiny

Below I present a simple way to automatically annotate plots through Shiny It occurred to me that labeling plots should be really easy to do with R-studio's swanky 'Shiny' add on. To test this I gathered some time series data from Wikipedia, added options for the number of points to be labelled, either by date or by view count. I also quickly added some custom labels. To test it, have a play with the app below. It's not very flexible; I've set it to only fetch data for December 2011, but the code is available here for anyone who wants to expand this feature.

The application may be tested here, or scroll down for an embedded version

By default it shows English language Wikipedia views for the Russian blogger Navalny. He emerged as one of the Russian protest movement leaders. The peaks in the graph correspond to the election on December 5th and the following street protests. There is also a peak in searches for Navalny after he was released from jail on December 20 2011.


The key part of the code is displayed below

76 comments:

  1. Embedded systems have great scope in future. There is a huge demand for embedded engineers and this the best way. The difficult part is gaining knowledge in various fields.
    Embedded course in Chennai | AWS Training Institutes in Chennai | AWS Training center in Chennai

    ReplyDelete
  2. Good to know that you are Postdoctoral Researcher, Interesting to read your blogs. Keep it up.

    Here are few useful links about the latest technologies:
    aws solution architect training in chennai | trending technologies 2018 | aws course in chennai what is the qualification

    ReplyDelete
  3. Your good knowledge and kindness in playing with all the pieces were very useful. I don’t know what I would have done if I had not encountered such a step like this.
    python training in omr

    python training in annanagar | python training in chennai

    python training in marathahalli | python training in btm layout

    python training in rajaji nagar | python training in jayanagar


    ReplyDelete
  4. I found your blog while searching for the updates, I am happy to be here. Very useful content and also easily understandable providing.. Believe me I did wrote an post about tutorials for beginners with reference of your blog. 

    Data Science Training in Chennai
    Data science training in bangalore
    Data science online training
    Data science training in pune
    Data science training in kalyan nagar
    selenium training in chennai

    ReplyDelete
  5. Useful information.I am actual blessed to read this article.thanks for giving us this advantageous information.I acknowledge this post.and I would like bookmark this post.Thanks
    python online training
    python training in OMR
    python training in tambaram

    ReplyDelete
  6. Hey, would you mind if I share your blog with my twitter group? There’s a lot of folks that I think would enjoy your content. Please let me know. Thank you.
    fire and safety course in chennai

    ReplyDelete
  7. Very well great blog post. This is a wonderful article, Given so much info in it, keep sharing.


    ExcelR Data Science Course Bangalore

    ReplyDelete
  8. I was surfing net and fortunately came across this site and found very interesting stuff here. Its really fun to read. I enjoyed a lot. Thanks for sharing this wonderful information.
    AI learning course malaysia

    ReplyDelete
  9. It is perfect time to make some plans for the future and it is time to be happy. I’ve read this post and if I could I desire to suggest you few interesting things or tips. Perhaps you could write next articles referring to this article. I want to read more things about it!




    DATA SCIENCE COURSE MALAYSIA

    ReplyDelete
  10. wow, great, I was wondering how to cure acne naturally. and found your site by google, learned a lot, now i’m a bit clear. I’ve bookmark your site and also add rss. keep us updated.

    Data Science Course Malaysia

    ReplyDelete
  11. Home Mart is a site about Home Improvement, Furniture, Home Appliances and many more.
    Check out the best
    furniture nz
    furniture sale
    Dog Cages
    bedroom furniture nz

    ReplyDelete
  12. This comment has been removed by the author.

    ReplyDelete
  13. Wow, amazing blog layout! How long have you been blogging for? you make blogging look easy. The overall look of your website is fantastic, let alone the content!

    3D animation Company
    Chatbot Development Company
    Android app development in Coimbatore

    ReplyDelete
  14. Usually I never comment on blogs but your article is so convincing that I never stop myself to say something about it. You’re doing a great job, Keep it up.
    Machine Learning Training In Hyderabad

    ReplyDelete
  15. Good post. You are explain basics of data science I have learn more from yourblog
    Data Science Training In Hyderabad

    ReplyDelete
  16. I like viewing web sites which comprehend the price of delivering the excellent useful resource free of charge. I truly adored reading your posting. Thank you!
    data analytics courses mumbai

    ReplyDelete
  17. This is the information that ive been looking for. Great insights & you have explained it really well. Thank you & looking forward for more of such valuable updates.
    Artificial Intelligence Training In Hyderabad

    Artificial Intelligence Course In Hyderabad

    ReplyDelete
  18. I like viewing web sites which comprehend the price of delivering the excellent useful resource free of charge. I truly adored reading your posting. Thank you!
    best data analytics courses in mumbai

    ReplyDelete
  19. I was very pleased to find this site. I want to thank you for this great content!! I enjoyed every little bit of it and I have you bookmarked to check out new stuff you post
    Selenium Training in chennai | Selenium Training in anna nagar | Selenium Training in omr | Selenium Training in porur | Selenium Training in tambaram | Selenium Training in velachery


    ReplyDelete
  20. Great post i must say and thanks for the information.
    Data Science Course in Hyderabad

    ReplyDelete

  21. This post is really helpful for us. I certainly love this website, keep on it.
    Data Science Course in Hyderabad

    ReplyDelete
  22. Avail Best Data Science Course in Bangalore and Kick Start Your Career as a Successful Data Scientist in Bangalore within 4 months. Data Science Course in Bangalore | Data Scientist Training in Bangalore with Placements. Learn the advanced data science course concepts and get your skills upgraded from the pioneers in Data Science.
    Online Data Science Course in Bangalore

    ReplyDelete
  23. Nice post. By reading your blog, i get inspired and this provides some useful information. Thank you for posting this exclusive post for our vision.
    acte reviews

    acte velachery reviews

    acte tambaram reviews

    acte anna nagar reviews

    acte porur reviews

    acte omr reviews

    acte chennai reviews

    acte student reviews

    ReplyDelete
  24. Thanks for sharing great information. I like your blog and highly recommendData Science Training in Hyderabad

    ReplyDelete
  25. 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.

    Simple Linear Regression

    Correlation vs Covariance

    Simple Linear Regression

    Correlation vs covariance

    KNN Algorithm

    ReplyDelete
  26. <a href="https://www.excelr.com/business-analytics-training-in-pune/”> Business Analytics Courses</a>
    It is perfect time to make some plans for the future and it is time to be happy. I’ve read this post and if I could I desire to suggest you few interesting things or tips. Perhaps you could write next articles referring to this article. I want to read more things about it!

    ReplyDelete
  27. Very interesting to read this article.I would like to thank you for the efforts you had made for writing this awesome article. This article inspired me to read more. keep it up.data science courses

    ReplyDelete
  28. wonderful article. I would like to thank you for the efforts you had made for writing this awesome article. This article resolved my all queries. data science courses

    ReplyDelete
  29. I will really appreciate the writer's choice for choosing this excellent article appropriate to my matter.Here is deep description about the article matter which helped me more.
    data science course in Hyderabad

    ReplyDelete
  30. Really impressed! Everything is very open and very clear clarification of issues. It contains truly facts. Your website is very valuable. Thanks for sharing.
    https://360digitmg.com/data-science-course-training-in-hyderabad

    ReplyDelete
  31. I recently came across your article and have been reading along. I want to express my admiration of your writing skill and ability to make readers read from the beginning to the end. I would like to read newer posts and to share my thoughts with you.
    data science training in Hyderabad

    ReplyDelete
  32. Very Informative blog,keep posting these type of blogs
    join 360digiTMG for best Data Science course
    Data science course

    ReplyDelete
  33. This was incredibly an exquisite implementation of your ideas <a href="https://360digitmg.com/india/business-analytics-training-in-kanpur>business analytics course in kanpur</a>

    ReplyDelete
  34. Wonderful blog. I delighted in perusing your articles. This is genuinely an incredible perused for me. I have bookmarked it and I am anticipating perusing new articles. Keep doing awesome!
    data analytics courses in hyderabad with placements

    ReplyDelete
  35. It is perfect time to make some plans for the future and it is time to be happy. I’ve read this post and if I could I desire to suggest you few interesting things or tips. Perhaps you could write next articles referring to this article. I want to read more things about it! data scientist course in kanpur

    ReplyDelete
  36. Nice blog and impressive. Useful information for many people. Keep sharing more blogs with us. Thank you.
    Data Science Training in Hyderabad

    ReplyDelete
  37. Very interesting blog. Alot of blogs I see these days don't really provide anything that I'm interested in, but I'm most definately interested in this one. Just thought that I would post and let you know. data scientist course in surat

    ReplyDelete
  38. Great tips and very easy to understand. This will definitely be very useful for me when I get a chance to start my blog.
    data scientist course in hyderabad

    ReplyDelete
  39. 360DigiTMG, the top-rated organisation among the most prestigious industries around the world, is an educational destination for those looking to pursue their dreams around the globe. The company is changing careers of many people through constant improvement, 360DigiTMG provides an outstanding learning experience and distinguishes itself from the pack. 360DigiTMG is a prominent global presence by offering world-class training. Its main office is in India and subsidiaries across Malaysia, USA, East Asia, Australia, Uk, Netherlands, and the Middle East.

    ReplyDelete
  40. Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I’ll be subscribing to your feed and I hope you post again soon. Big thanks for the useful info. business analytics course in kanpur

    ReplyDelete