This function is now deprecated. It used to provide a way to store plotly account credentials, but that can now be done with environment variables. For more details and examples, see https://plotly.com/r/getting-started/.
If you're here looking for an intro/overview of the package, see the readme
plotly API key
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.