by Sheri Gilley, Principal UI Designer at Revolution Analytics
Revolution R Enterprise DeployR is a server framework that exposes the R platform as a service allowing the integration of R statistics, analytics and visualizations inside Web, desktop and mobile applications. DeployR’s framework allows users to store and serve up R code that can then easily be used and reused in your own interfaces. By separating the R code from the UI code, not only can you leave the analytics to the R developer and the UI designs to the web developers, but you can also make it easier to unit test and debug the R code. Additionally, this separation of R and UI allows you to make the best use of the best software for each. You can take advantage of choice UI frameworks, such as AngularJS, to develop and solve front-end design issues and DeployR for managing and executing high powered R analytics.
A few weeks ago, Joseph Rickert introduced a method for retrieving package information from CRAN. He created a count of the number of Depends per package, and then plotted a histogram of this count. This same data is used in the example below to demonstrate how to combine DeployR, rCharts, and AngularJS to display some histograms. The code itself will execute only once and all additional interactions occur on the client.
This chart was built with:
- An R script (Histograms.R) stored on the DeployR server and publicly accessible. This script creates a chart using the rCharts package.
- An HTML page (index.html) that displays the chart and its interactive controls.