Hi. I am having trouble labeling the nodes...
I want to label the values at each node. However it does not showing up. My command is
gen x0 = 1 gen x1 = 2
contract x0 x1 A B, freq(freq2)
sankey_plot x0 A x1 B, ///
width0(freq2) ///
extra adjust ///
colorpalette(viridis, opacity(40)) ///
gap(0.1) noline ///
xlabel(1 "A" 2 "B", nogrid)
A represents the first node and B represents the second node.
But it turns out nothing.
So I add label0(A) label1(B) in the command, but it gives me an error code" variable A not found r(111); "
Anyone can help me?
Thank you in advance!
Comment