Hi, experts,
1.I use proc template to customize the graph template. Maybe due to the icon at the bottom, the label is far away from the Y-axis. I want to set the label="Survival Probability" in the graph closer to the Y-axis.
2. How to set the legend in the upper right corner of Figure 2?
Thank you for your clarification. Thank you.
Your DRAWTEXT statement would look something like the following (Adjust the X value to taste. It should be a value < 0, since it is relative to the wall):
drawtext textattrs=GraphLabelText "Survival Probability" / rotate=90 drawspace=wallpercent y=50 x=-10;
1. The axis label is getting pushed out because the length of the AXISTABLE labels at the bottom. Some options to fix the issue include the following:
2. The DISCRETELEGEND need to be inside your LAYOUT OVERLAY, and set the POSITION to be TOPRIGHT.
Hope this helps!
Your DRAWTEXT statement would look something like the following (Adjust the X value to taste. It should be a value < 0, since it is relative to the wall):
drawtext textattrs=GraphLabelText "Survival Probability" / rotate=90 drawspace=wallpercent y=50 x=-10;
Sorry, I realized that for #2, I accidentally put the SGPLOT option for positioning the legend. For GTL, you should use HALIGN=RIGHT and VALIGN=TOP. Thanks!
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
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.