im trying to set all the right nodes to a list of colors and the left nodes to other colors, i mean all left nodes should be a colors of ARRAYCOLORS1 and right nodes ARRAYCOLORS2. I know i can set the nodes colors with sankey.node.colors but my data is variable, so i cant predict the colors to put it into array. I want something like this
A->ARRAYCOLORS1[0] X->ARRAYCOLORS2[0] B->ARRAYCOLORS1[1] Y->ARRAYCOLORS2[1] C->ARRAYCOLORS1[2] D->ARRAYCOLORS1[3]
Asked
Active
Viewed 147 times
0

AgusSn
- 9
- 2