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


  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

  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

  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

  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

  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

  6. 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.
    DevOps online Training

  7. Whoa! I’m enjoying the template/theme of this website. It’s simple, yet effective. A lot of times it’s very hard to get that “perfect balance” between superb usability and visual appeal. I must say you’ve done a very good job with this.
    AWS Training in Bangalore |Best AWS Training Institute in Bangalore BTM, Marathahalli
    AWS Training in Chennai | AWS Training Institute in Chennai Velachery, Tambaram, OMR

  8. 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