O'Reilly logo

Web Application Development with R Using Shiny - Second Edition by Chris Beeley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The application framework

Most of the code in this chapter expands on the Google Analytics application, as described in Chapter 2, Building Your First Application. Before we begin, let's review the code in server.R, which sets the data ready for the plotting commands. The complete code can be downloaded and run from http://chrisbeeley.net/website/:

library(dplyr)
library(shiny)
library(dygraphs)
library(xts)
library(rCharts)
library(d3heatmap)

Here, we load all of the packages, which will be needed for the application. The new ones can be installed as follows:

install.packages(c("dygraphs", "xts", "d3heatmap"))
require(devtools)
install_github("ramnathv/rCharts")

Now, we begin with the application, using the session argument. As described in Chapter ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required