Changing trace colors in Sankey

Hi @butteredtoast

It may be easier for users to give suggestion if you share your code. That said, have you tried something like:

library(plotly)

plot_ly(
  type='sankey',
  alpha = 0.1,
  node = list(
    pad = 15,
    thickness = 20,
    line = list(
      color = "black",
      width = 0.5
    ),
    label = c("A1", "A2", "B1", "B2", "C1", "C2"),
    color = 'rgba(255,0,255,0.8)'
  ),
  link = list(
    source = c(0,1,0,2,3,3),
    target = c(2,3,3,4,4,5),
    value = c(8,4,2,8,4,2),
    color = 'rgba(0,255,255,0.4)'
  )
)