Required to make the visualization below. Files available at GitHub here.

  1. The data converted into JSON format from an R object done in an r chunk.
  2. HTML with divs in RMarkdown document defining where to put elements of the visualization.
  3. a styles.css sheet in the working directory linked to through css: styles.css in the YAML
  4. link to D3.js library in script tag
  5. link to the js file jsviz.js in the working directory containing the script to run the visualization in script tag.