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.

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 6 replies
  • 1306 views
  • 5 likes
  • 3 in conversation