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!
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!
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.
Ready to level-up your skills? Choose your own adventure.