arcdiagram icon indicating copy to clipboard operation
arcdiagram copied to clipboard

Continuous color gradient instead of discrete palette?

Open sastoudt opened this issue 4 years ago • 1 comments

I would like to be able to color code the nodes and edges based on a continuous palette rather than a color for every value. Do you have any advice for how to go about that?

sastoudt avatar Apr 05 '20 17:04 sastoudt

Ah, may have figured out a hack by passing in the color values calculated from a continuous palette.

relations$col <- heat.colors(10,rev = T)[as.numeric(cut(log(relations$total),breaks = 10))]

sastoudt avatar Apr 05 '20 17:04 sastoudt