Dygraphs - Perfect for charting interactive time-series data in R. Used here for plotting facebook stock data.


Explanation:

  1. We use the package dygraphs to plot a timeseries object. In this case, it is the stock value for Facebook. (ticker symbol = FB)

  2. Move the slider in the bottom to select the timeframe of interest.

  3. Hover on the timeseries line to see exact values of the stock on a particular date.

  4. Note that the latest Facebook stock data itself is pulled in from Yahoo! website using the quantmod package function - getSymbols.yahoo()

Graph of loan interest rates based on loan grade. See how the interest rates increase with a worse grade.


The loan grades are rated on a scale of A to G, with A being the least risky and G being the highest probability of defaults.

Plotly - leverages the plotly.js library to convert ggplot2 graphics into interactive web-friendly versions.


Interaction:

  1. The usage of package ggplot2 allows us to convert graphs to interactive, data rich visuals perfect for presentations or publishing on the web! The tooltips can be used to convey additional data.

  2. Hover over the graph to see more details. Or use the icons to zoom in/out , save the image and much more!

d3heatmap - Interactive heatmaps.


Interaction with Heatmap:

  1. To view the heatmap in more details, click on any row or column by clicking axis labels.

  2. Hover over any of the cells to see the values.

  3. The use of d3heatmap package allows us to see the dendograms (tree chart). So from left to right, the cars were classified by the values on the x-axis. Hence we first divide the cars by number of cylinder (4 or 6), then each cylinder type is further divided by Transmission (am variable - 0 for automatic or 1 for manual), then V/S (0 or 1), and so on.