cancel
Showing results for 
Search instead for 
Did you mean: 

xaxistable title: K-M plot in %ProvideSurvivalMacros

Andrewpass
Fluorite | Level 6

xaxistable title: K-M plot in %ProvideSurvivalMacros

Message contains an image

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):

 

Untitled1.jpg 

 

My codes referred to previous post:

                     

Untitled11.jpg 

 

Figure 2 (current status):

 

Untitled2.jpg

4 REPLIES 4
Rick_SAS
SAS Super FREQ

Re: xaxistable title: K-M plot in %ProvideSurvivalMacros

Message contains a hyperlink

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.)

Andrewpass
Fluorite | Level 6

Re: xaxistable title: K-M plot in %ProvideSurvivalMacros

Message contains an image

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.

 

 

Untitled23.jpg

Rick_SAS
SAS Super FREQ

Re: xaxistable title: K-M plot in %ProvideSurvivalMacros

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';

Andrewpass
Fluorite | Level 6

Re: xaxistable title: K-M plot in %ProvideSurvivalMacros

Thank you so much. It is helpful.