Dear All,
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.)
Hi,
Thank you for instruction. I did try your suggestion. I haven't gotten what I need. Because I would like to "k aligns to m", How do I increase the space between border line and words in the left? Appreciate any instruction.
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';
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.