You can install jsPhyloSVG from github with:
# install.packages("devtools") devtools::install_github("USCBiostats/jsPhyloSVG")
In the following, we present an example of usage of the widget. First, using the ape package, we create a random phylogenetic tree.
x <- rtree(10)
plot.ape method, we can get a nice tree drawn with ape:
jsPhyloSVG(write.tree(x), width = 500)