Home > three_d.js > Examples

Iris dataset

The plot below shows three variables from the Iris dataset.

Mouse controls: Left-click and drag to rotate; alt (Mac)- or ctrl (Windows)-click-drag or middle-click-drag to pan; scroll or shift-click-drag to zoom. Touch screen controls: one finger to rotate; two-finger scroll to pan; pinch to zoom.

Toggle setosa, versicolor, virginica.

You can see how the plot is constructed in the HTML source:

The Iris dataset is included with R; the R script I used to turn it into JavaScript is here; the code sources my main JS-writing function write_three_d.R.

Posted 2016-10-02, updated 2016-12-22 (v1; groups).


Home > three_d.js > Examples