BookmarkSubscribeRSS Feed
dr2014
Quartz | Level 8

Hi all,

I ran a proc lifetest and then used gplot to get the graph. I was able to add the axes labels and legend, however the code below does not give a title. Could you please let me know what's wrong with the code? Thanks.

 

ods rtf file='path.rtf';
title 'abcd';
title2 '(xyz)';
goption reset=all;*ftext=simplex;
symbol1 line=1 color=blue i=stepj;
symbol2 line=2 color=red i=stepj;
axis1 label=(angle=90 'Survival Probability');
axis2 label=('axis label name ');
legend1 label = none value = (height = 1.5) position = (top right inside) down = 2;

proc gplot data = test;  
plot survival*duration = grade / vaxis=axis1 haxis=axis2 legend=legend1;;
run;
quit;
ods rtf close;
2 REPLIES 2
ballardw
Super User

Since I would expect to see a title with the shown code I think something else is going on.

I think we need to see the log to see what may be happening. Rerun the code from the ODS RTF to the ODS RTF CLOSE to recreate the log. Copy the text from the title to the end of the  code along with any notes or messages in the log. On the forum open a code box by clicking on the </> icon and then paste into the opened box. This last step is important as the message windows will reformat text and move some of the error diagnostics that SAS often provides.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 1628 views
  • 2 likes
  • 3 in conversation