BookmarkSubscribeRSS Feed
Obsidian | Level 7


In my waterfall, I am plotting change in tumor size for 145 subjects. As a result the subject numbers are not displayed clearly and x-axis is not readable. Is there a way to make the subject numbers (x-axis) tick marks vertical? Attached to this post is an image of x-axis from the plot. Any help is much appreciated. Thanks!!

Waterfall Plot xaxis.png

Super User

It never hurts to share the code you are currently using.

Suggestions that are based on a Proc SGPLOT solution may not be appropriate if you are using Graph Template Language, or vice versa.


Since your current axis is so "ugly" you should provide some examples of what the text displayed on the axis should be.


You should be able to use the VALUESROTATE=Vertical on an XAXIS statement but this interacts to some extent with the FITPOLICY option, which is why I suggest showing the entire code of your plot.

Barite | Level 11
As a programmer who also works with tumor measurement data my question is: is it necessary to even show the patient ids in the axis? The purpose of the plot is to get an idea of how patients responded to the treatment in a visual, and using the graph to track an individual patient isn't really efficient. I would turn the ticks and labels off for the x axis and just mention how many patients are included.


Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.


Register now!

How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 3 in conversation