BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Cruise
Ammonite | Level 13

Hi Folks:

 

Any idea how to split y-axis title in the plot shown below into two rows? so title would appear a whole? Thank you!

 

 

cut title.png

ods graphics/width=11in height=3in;
proc sgpanel data=mydata;
panelby SORT/ novarname columns=4 rows=1;
styleattrs DATACONTRASTCOLORS=(BLUE green red);
series  x=FU y=HazardRatio/lineattrs=(pattern=solid thickness=2) GROUP=S;
REFLINE 1 / LABEL = ('HR=1')  lineattrs=(color=black pattern=solid thickness=1) labelpos=min; 
colaxis label='Weeks' min=1 max=100 grid values=(0 to 52 by 1);
rowaxis label='Hazard Ratio Between Midpoint Imputation and Gold-Standard' 
fitpolicy=thin grid  values=(1 to 1.5 by 0.1);
keylegend/  title="Cancer Stage" position=TOP;
run;
1 ACCEPTED SOLUTION

Accepted Solutions
ChrisNZ
Tourmaline | Level 20

The split options are for tick marks I think. I couldn't find a way to split that title. Sorry.

View solution in original post

6 REPLIES 6
Ksharp
Super User
rowaxis label='Hazard Ratio Between Midpoint Imputation and Gold-Standard' 
fitpolicy=splitalways   splitchar=' '    ;
Cruise
Ammonite | Level 13
Thanks Ksharp. the addition into the code didn't change anything. any idea?
ChrisNZ
Tourmaline | Level 20

The split options are for tick marks I think. I couldn't find a way to split that title. Sorry.

Cruise
Ammonite | Level 13
Thank for letting me know. Knowing this, I shortened my title to fit. The shorter title actually worked out better.
Ksharp
Super User

Maybe you could post it at ODS Graphic forum . There are more smart Graphic guys in it . 

Cruise
Ammonite | Level 13
I'm satisfied with the shorter title given moving forward is being more important. Thanks Ksharp.

SAS Innovate 2025: Register Now

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!

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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 6 replies
  • 1670 views
  • 5 likes
  • 3 in conversation