I am able to label the bar segments with label=count. I will also like to label the nodes leaving the segments (variable=n_move). My question is, is it possible to label using multiple variables (in this case count and n_move) in sgplot?
if yes, how ?
The red arrow indicates label=count and the blue arrow indicates label=n_move showing the number of patients leaving that group
If you have x, y coordinates associated where you want the label placed a TEXT plot would work.
Or provide data so we can run your code and see what might be possible. Sometimes these extra label steps are easy, sometimes you need to add variables or rearrange data a bit.
You can try duplicating your plot statement with a the label changed to the other variable. If that obscures your plot too much try turning the transparency up in BOTH ploygon statements as the overlaps will get more saturation.
I hope you are making this a relatively large graphic as you are going to have a lot of text floating around, likely with collisions. Are you sure that you want those skinny connections with text?
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.