Download the package using the devtools function install_github("jian13579/mapstu")
In order to use any of the functions the dataset must be intiated by using the function totaldata(). To do so create a name for the dataset. All the examples in the package use yearsdata <- totaldata().
All functions in the package will take some year vector of the dataset, and take can be called like any normal dataframe with the "$" symbol.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.