The R package kh3d provides helper scripts for 3d plotting using the R package rgl.
This package is still under construction...
To install kh3d please run:
devtools::install_github("k-hench/kh3d")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.