Skip to content

Root-to-tip Regression

In this example we will do a root to tip regression on a small, fixed tree.

This examples uses code directly from Clockor2, which was the origial impetus for developing PhyloJS into a complete library.

We will demonstrate use of Tree.getRTTDist(), Tree.getTipLabels(), and the readNewick() function.

See the Pen root-to-tip-regression by Leo Featherstone (@LeoFeatherstone) on CodePen.