Chapter 37 Interactive graph links
37.1 Bokeh Cheatsheet
Zihe Wang(zw2624) and Yaotian Dai(yd2512)
We created a cheat sheet for Bokeh, a python package great for interactive data visualization.
Please visit it through the link: https://github.com/zw2624/bokeh_cheatsheet
37.2 SandDance (video)
Mughilan Muthupari and Anjani Prasad Atluri
We have made a video tutorial on SandDance (a visualization tool by Microsoft), posted on YouTube here.
Note: The presentation used can be found in the description of the video.
37.3 OpenCPU (talk)
Matthew Mackenzie
37.3.1 What is OpenCPU?
OpenCPU is a “API for Embedded Scientific Computing.” OpenCPU consits of 3 main parts:
- a server to host OpenCPU apps locally or on the cloud,
- a HTTP API for data analysis using R, and
- a JavaScript library to integrate everything together.
OpenCPU works as a platform to create web apps centered around using R for any needed data analysis and visualizations.
37.3.2 What is this Tutorial?
There is not a whole lot of information out there having to do with actually creating an OpenCPU app, so this tutorial will attempt to piece what information is available together by working through an example project. There are 4 major steps involved:
- Creating a Disfunctional App: creating an R package to acomplish the data processing we need and the HTML for the user to interact with,
- OpenCPU.js: connecting the HTML to the R package with the OpenCPU JavaScript library,
- Local Development: testing the app locally, and
- App Deployment: deploying the app to the OpenCPU Cloud.
As mentioned, this tutorial will be centered around an example… enter Distogram.
37.3.3 Distogram: A Working OpenCPU Example
I wanted to keep things relatively simple, but I think this example gets the point across of the power of using R in the browser. Distogram is an app that prompts users to choose a sample size and probability distribution to sample from, uses R to create a histogram based on these and other parameters, and then presents that plot in the browser. The full tutorial, as well as the running example, can be found at the links below.
- Full Tutorial: mbmackenzie/distogram
- Example Application: mbmackenzie.ocpu.io/distogram