any clues why the title has been cut off by the code below?
title "Time to First Event";
ods graphics on/noborder;
ods rtf file = "C:\Users\q\Desktop\figure 1.rtf";
proc sgpanel data=adtte7 noautolegend;
panelby trt01p / spacing=15 novarname;
colaxis label ="Days";
rowaxis label ="Subject ID" display=(NOTICKS);
series x=aval0 y=subjid_r/group=subjid_r
lineattrs=(color=black pattern=solid thickness = 2)
scatter x=ttcvd y=subjid_r/name = 'a'
markerattrs=(color=red symbol=circlefilled size=15)
scatter x=ttmi y=subjid_r/name = 'b'
markerattrs=(color=yellow symbol=diamondfilled size=15)
scatter x=ttreva y=subjid_r/name = 'c'
markerattrs=(color=purple symbol=trianglefilled size=15)
scatter x=tthua y=subjid_r/name = 'd'
markerattrs=(color=green symbol=squarefilled size=15)
scatter x=ttstr y=subjid_r/name = 'e'
markerattrs=(color=blue symbol=starfilled size=15)
keylegend 'a' 'b' 'c' 'd' 'e';
Probably because the title is being placed in the body of the graph, and the space allocated is not wide enough. Avoid putting titles in the body of the graph, and use the titles area with:
ods rtf file = "C:\Users\q\Desktop\figure 1.rtf" nogtitle nogfootnote;
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
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.