phylowidget offers an interactive view of a phylogeny directly from R by wrapping the Javascript library phylotree.js by Sergei Kosakovsky Pond and Steven Weaver. This combines the interactivity of D3.js with the convenience and flexibility of an R htmlwidget.
To learn more about phylowidget, start with the vignettes:
browseVignettes(package = "phylowidget")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.