I would like to the xaxistable title in K-M plot consistent with Figure1 (highlighted part). From the previous post, I can make it as Figure 2 shown. How do I adjust parameters in graphics to increase more space in the left? I appreciate your inputs in advance. Thanks.
Figure 1 (my goal):
My codes referred to previous post:
Figure 2 (current status):
Here is a link to the documentation for the DRAWTEXT statement.
Play around with the various options to see which accomplishes your goal. I think the default positioning is ANCHOR=CENTER, so you might want to try ANCHOR=LEFT to see if that moves the text box to the right. (If the text box isn't long enough, increase the WIDTH= value to WIDTH=30.)
It is difficult for me to guess what you've tried.
An alternative to drawing text is to use the AtRiskOpts macro. Search for AtRiskOpts in the documentation chapter and read about that option. Try
%let AtRiskOpts = display=(label) valueattrs=(size=7pt)
titlehalign=left title='Number at Risk';
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.