Superscript labels in r googleVis
问题 I coded simple sankey with r googleVis package: DF= data.frame(From=c('A', 'B', 'C'), To=c('D','D', 'F'), Weight=c(0.460, 5.100, 2.393), Weight.html.tooltip = paste(c(0.460, 5.100, 2.393), paste(expression(m^3)))) plot(gvisSankey(DF,from="From", to="To", weight="Weight", options=list(width = "1200", height = "600", sankey="{ link: {colorMode: 'gradient', color: { fill: '#green' } }, node: {nodePadding: 80, width:50, color: { fill: '#a61d4c'} }, tooltip: {isHtml:'true'} }" ))) I am trying to