In this section, we create a dashboard in an R Notebook.
Creating an R dashboard
How to do it...
We have the following script; it loads and analyzes the data, producing four graphical elements. They are the head of the dataset, regression analysis, comparing sales components as drivers to sales, and comparing ad effectiveness:
# Load and display same of the data points
#install.packages("s20x", repos='http://cran.us.r-project.org')
#install.packages("car", repos='http://cran.us.r-project.org')
# libraries used
library(s20x)
library(car)
# load and display data - originally at http://www.dataapple.net/wp-content/uploads/2013/04/
df <- read.csv("grapeJuice.csv",header=T...