Summary

Not only can visualisations be easily automated using Program R in real time but so can analytical reports through the use of RMarkdown. These reports can be rendered in PDF or WORD formats (for more details on using R Markdown see http://rmarkdown.rstudio.com). However, they have greatest interactivity when rendered in an HTML format. HTML formats can be read automatically by browsers which means that they can also be inserted directly into your organisational website.

Including graphic elements

It is easy to include static images, interactive plots or tablets. Widgets can also be attached which will allow their contents to be downloaded by the reader. Given that graphic elements can often overwhelm the look of a report we can file these behind tabs:


Static

Interactive

Interactive tables with widgets


Including code

One of the great advantages of report making in RMarkdown is that the analysis is actually embedded in the document. Consequently, we can choose to show the underlying code and its output for more technical reports (such as the dinosaur animation below):


library(datasauRus)
library(ggplot2)
library(gganimate)

ggplot(datasaurus_dozen, aes(x=x, y=y))+
  geom_point(size = 4, alpha = 0.5, colour = "#149414")+
  theme_void() +
  transition_states(dataset, 3, 1) + 
  ease_aes('cubic-in-out')

Conclusion

Rmarkdown is an easy way to automate the production of shareable, interactive reports. At the same time because the reports are written in code they enhance reproduciblity.