I would like to generate a waterfall plot. One vertical bar represents a subject, but I would like to use tumor type to display the tick values on the X axis. There are some same tumor types for different subjects. So if it is possible to display repeat tick values on X axis?
I tried to use the option values=('') to specify each value. but as the figure show, the bar with the same tumor type will display together. I would like to show them orderly. Very appreciate and hope for your response.
It not works. But I found that using options values= and valuesdisplay= at the same time can meet my requirement.
proc sgplot;
vbarparm category=subjid response=aval;
xaxis values=('001' '002' 003' '004' '005') valuesdisplay=('test1' 'test2' 'test1' 'test1' 'test4');
run;
Show us your code please 🙂
Attached my code.😁
It not works. But I found that using options values= and valuesdisplay= at the same time can meet my requirement.
proc sgplot;
vbarparm category=subjid response=aval;
xaxis values=('001' '002' 003' '004' '005') valuesdisplay=('test1' 'test2' 'test1' 'test1' 'test4');
run;
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
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.