d3-tree: how to highlight subtrees?

Looking at trees like this example, I was wondering
how could you highlight clades/subtrees of the tree with different colors.
An example of a such a tree is here

enter image description here

  • Using d3.js in Angular2
  • Mapping an arc in D3 using d3.geo.path()
  • Integrating angularjs and d3, simple data-binding example
  • d3 show number instead of percentages on pie chart
  • Accessing properties of an array of objects
  • How to tell when a D3 force layout has stopped
  • Is it possible to overlay a rectangle with lower opacity over specific inner nodes?

    Any help is much appreciated!

  • How can I reset the graph position and scale in dagre-d3
  • How to show full text when zoom in & truncate it when zoom out
  • D3 - Large GeoJSON File does not show draw map properly using projections
  • d3.js visualization on android 2.3
  • D3 force layout: How do I set the size of every node?
  • D3js - change Vertical bar chart to Horizontal bar chart