BookmarkSubscribeRSS Feed
keen_sas
Quartz | Level 8
Hi All,

I have used split option in axis statement to split the values into two lines on x-axis .Since i have used the tick option the split option is not working here, i have even tried with the format statement also to split it into two lines because of the irregular weeks, i have to use tick option to display them rather than by using them directly.
axis2 order=(0 to 52 by 4) offset=(4,4) label=none minor=none split =','
value=(h=3 tick=1 '0,V4' tick=2 '4,V5' tick=3 '8,V7' tick=4 '12,V8' tick=5 ' ' tick=6 ' ' tick=7 ' ' tick=8 '26,V9' tick=9 ' ' tick=10 ' ' tick=11 '39,V10' tick=12 ' '
tick=13 ' ' tick=14 '52,,V11' );

I need to display the x-axis label in two lines like this

0 2 4 9 12 14 (This is firstline for weeks)
v1 v2 v3 v4 v5 v6 (this is second line for visits)

This has to be done using proc gplot.

Can anyone please help me in splitting the value into two lines inspite of tick option, or any other alternative.

Thanks in advance for your suggestions.

Thanks
1 REPLY 1
SPR
Quartz | Level 8 SPR
Quartz | Level 8
Hello Keen@SAS,

You can merge weeks and visits into a new character variable having valies like 2_15 (week=2 visits=15) and plot them on x-axis vertically using VALUE=(ANGLE=90) in your AXIS satetment.

Sincerely,
SPR

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

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!

Register now

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1851 views
  • 0 likes
  • 2 in conversation