R networkD3 custom node color for radialNetwork()
问题 The R package networkD3 provides an interface for R users to make network plots in D3, but the input data and ability to map data to network aesthetics differs over the available plots (e.g., simpleNetwork, forceNetwork). Recently I've been trying to apply custom colors to each node in a radialNetwork(), similar to this thread, but I can't figure out how the custom coloring was mapped to the nodes. The code to produce a custom coloring: library(networkD3) library(tidyverse) library(data.tree)