Add the 'animate' dependency to an htmlwidget. You can only manipulate the htmlwidget if you call the method 'plot' with an rAmChart.
Return an updated htmlwidget with the dependency.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.