-
Notifications
You must be signed in to change notification settings - Fork 263
Closed
Labels
Description
Hey,
I am doing a hierarchical clustering with a few hundred objects and I'm trying to find a nifty way to visualize the clustering and allow someone to play around with parameters and possibly zoom in and out. I've just started looking into how to make a Phylogram and I think it might be a good addition to networkD3. The following are examples of the d3 already implemented:
- https://gist.github.com/kueda/1036776/
- http://bl.ocks.org/kueda/1036776
- https://github.com/tim-thimmaiah/phylonator/tree/master/js (this nifty implementation features zoom)
I have literally zero experience with javascript and d3 so I have absolutely no idea what I'm doing. I'm just trying to replicate what's been done already in networkD3 and patch in the stuff above.
The basic issues:
- Considering that newick.js is already written, really it comes down to just passing the newick string. In R, ape::write.tree does that to a phylo object.
- Other than that, it's just piecing together the htmlwidgets components I guess. I think I have the necessary .R file together but the .js file for htmlwidgets is harder for me to figure out. For one, since the code for the phylogram is already written, it'd be nice to just call the functions but I just don't see how it's done.
With the js already written, how hard is it to get this up and running with the htmlwidgets?
Reactions are currently unavailable