This is a simple Shiny app for illustrating function approximation using decision trees. You will need to have the following packages installed:
install.packages(c("shiny", "plotly", "mvtnorm"))
After installing these, you can run the app from the R console using:
library("plotly")
library("shiny")
runGitHub("schoonees/trees")