是否可以在使用R GoogleVis创建的sankey图中添加标题(更通常是注释,例如,字幕或源)?使用基本示例:
datSK <- 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 <- gvisSankey(datSK, from="From", to="To", weight="Weight",
options=list(
sankey="{
link: {color: { fill: '#d799ae' } },
node: { color: { fill: '#a61d4c' },
label: { color: '#871b47' } }
}"))
我如何修改选项列表,使其包含标题?