Developing Data Products - Pitch deck

Vladimir Djurovic
2014/11/20

What to expect?

The Shiny application for the project does the following:

  • loads mtcars dataset
  • user can select the number of rows to display
  • user can select only cars with specific number of cylinders

Car table details

Application allows user to select number of rows to display by using the slider. This is equvalent to the following code:

library(datasets)
data(mtcars)
head(mtcars[,1:6], n = 5)
                   mpg cyl disp  hp drat    wt
Mazda RX4         21.0   6  160 110 3.90 2.620
Mazda RX4 Wag     21.0   6  160 110 3.90 2.875
Datsun 710        22.8   4  108  93 3.85 2.320
Hornet 4 Drive    21.4   6  258 110 3.08 3.215
Hornet Sportabout 18.7   8  360 175 3.15 3.440

Selecting number of cylinders

Users can also select to see only cars with specific number of cylinders, like shown in the following code.

data <- subset(mtcars,cyl == c(4,6));
head(data[,1:5], n=5)
                mpg cyl  disp  hp drat
Mazda RX4 Wag  21.0   6 160.0 110 3.90
Datsun 710     22.8   4 108.0  93 3.85
Hornet 4 Drive 21.4   6 258.0 110 3.08
Valiant        18.1   6 225.0 105 2.76
Merc 230       22.8   4 140.8  95 3.92

Reactive features

Application supports reactive changes to selection of cylinders.

  • when ever cylinder selection is changed, view is automatically refreshed
  • if all cylinder types are deselected, a message will show up instead of data table