@karrtikiyer from Bahmni team has created a series of videos and a blog writeup on how to use R for data analytics of OpenMRS/Bahmni data. You can watch the 9 video series which explains the tools needed, how to extract data and render it in R in this playlist here: https://www.youtube.com/playlist?list=PLzknGpbejfSyYEvUJnhJwifqHE_6ztW2o
The blog writeup is here: https://medium.com/bahmni-blog/introduction-to-exploratory-data-analysis-of-bahmni-using-r-6c186fd6f010#.fq00xxvwz