A commonly used (hidden) function for setting up dendrograms for interactive plots. based on code found at https://plot.ly/ggplot2/ggdendro-dendrograms/
A 'data.frame' as required
Create plot using
A plotly object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.