Hi ,
I am using the 'wide' option with the sankey_plot function. Below is the code for producing the sankey plot. However, I am encountering two issues:
***
contract dist_dhq lhw_engage anc4 pob if survey==2 & age_grp==0 , freq(fq) percent(pr)
sankey_plot dist_dhq lhw_engage anc4 pob , wide width(pr) ///
colorpalette(viridis, opacity(40)) labcolor(black) labsize(small) ///
xlabel(1 "Distance to DHQ" 2 "LHW engagement" 3 "ANC Visits" 4 "Place of birth" , labsize(small) nogrid ) gap(0.1) tight ///
plotregion(margin(large))
I am using the 'wide' option with the sankey_plot function. Below is the code for producing the sankey plot. However, I am encountering two issues:
- I would like to display the frequency from the 'fq' variable on each node as a label. Is there a way to accomplish this and have it visible over the graph?
- In the command's help documentation, an option is mentioned as 'color(varname)' to preassign colors based on a specified variable. However, this option does not seem to be functioning .
***
contract dist_dhq lhw_engage anc4 pob if survey==2 & age_grp==0 , freq(fq) percent(pr)
sankey_plot dist_dhq lhw_engage anc4 pob , wide width(pr) ///
colorpalette(viridis, opacity(40)) labcolor(black) labsize(small) ///
xlabel(1 "Distance to DHQ" 2 "LHW engagement" 3 "ANC Visits" 4 "Place of birth" , labsize(small) nogrid ) gap(0.1) tight ///
plotregion(margin(large))
Comment