Shiny is the new Cool

[This article was first published on PremierSoccerStats » R, 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.

Several of you will probably have tried out the new Shiny package brought to the table by the RStudio guys

This is just what I have been looking for and to my mind could provide a quantum leap in the use of R. There have been other packages addressing the need for web user interactivity but this is the first one I have found that makes it relatively easy for the less technically able of us to get something up and running

Up until now, I have used Flex/Flash to allow interactivity but there are several drawbacks including the platform itself and development time. I also wish to take advantage of the statistical processing and graphical opportunities offered by R

Much of my future work will be sports-related but I am kicking off with an app based on work I have presented in a previous post

The app, which graphically compares subjects wikipedia search rates by day, can be seen accessed RStudio’s server option. Currently under development (so there may be problems), I am hoping it is financially affordable once it goes fully live!
I have posted the code as a gist and for those of you with the shiny package installed on R it can also be run with the shiny::runGist(’4171750′) command

Actual run times to produce the graph are pretty acceptable especially if the number of subjects compared is small and only a limited number of months is surveyed. Any graphs are easily saveable, of course.

It’s mostly fun, of course, and quite addictive. My son took particular pleasure in seeing the lack of interest in any Blue Jays player compared with Derek Jeter.

Where does the star of ‘The Magnificent Seven’ stand in interest comapred with his fellow heroes?

And what explains this pattern with Shakespeare? Click on image for larger version

I am sure there are more useful aspects to be mined. For instance, if a particular subject has to be evaluated, peaks in the timeline will allow easy access to news for that day. And as I have alluded to before perhaps the interest in a particular political candidate is a foreshadow (and potential replacement of) standard opinion polls

For now, I will leave the last word to John Lennon.

To leave a comment for the author, please follow the link and comment on their blog: PremierSoccerStats » R. 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)