Hello,
I used the following code to create Sankey bar charts to track sleep scores for people across multiple visits. How do I adjust the height of the bars so that each bar height is proportionate to the number of people who attended each visit? Thanks
%sankeybarchart
(data=Sankey
,subject=subject
,yvar=sleep_scores
,xvar=visit
,yvarord=%str(0, 1, 2, 3, 4)
,xvarord=%str(0,1,2,3,4)
,barwidth=0.45
,xfmt=xfmt.
,legendtitle=%str(Sleep Scores)
);
No idea. but I want to use this macro. I didn't see it when it came out. Thanks for introducing it to me.
There's got to be answers for you on the Github page. IDK any but I'll put the link here just to be a good forum participant:
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.