title: How to change node and link colors in R googleVis sankey chart
body: <p>How can node and link colors be changed in R googleVis sankey chart? And link having the same color as its originating node?</p>
  
  <pre><code>library(googleVis)
  datSK &lt;- data.frame(From=c(rep("A",3), rep("B", 3)),
                  To=c(rep(c("X", "Y", "Z"),2)),
                  Weight=c(5,7,6,2,9,4))
  
  Sankey &lt;- gvisSankey(datSK, from="From", to="To", weight="Weight",
                   options=list(
                     sankey="{link: {color: { fill: '#d799ae' } },
                          node: { color: { fill: '#a61d4c' },
                          label: { color: '#871b47' } }}"))
  plot(Sankey)
  </code></pre>