How to use the annotate macros has been the subject of a number of papers and I am not going to write such a paper. You can search Google for these. What I am going to show you on this page is a fairly complicated use of them when creating and using a time scale.
Note that the scale is shown from day -40 to 150 with the scale marks you can see at the bottom of the page. This is what I am going to reproduce in this document. I won't be adding any other details at this stage. That would make things too complicated. I just want you to see how I have reproduced this scale. In my code you will see how I can plot a day number to an x axis coordinate so if I wanted to I could add other details just like the patient profiler is doing. But for your sake, I will keep things simple.
|%*- The minimum and maximum days for the x axis and the scale to
%let scale= -40/-40 | 0/D1 | 14/W2 | 28/W4 | 56/W8 | 84/W12 | 112/W16 | 150/150 ;
goptions reset=all vpos=60 hpos=120 papersize='A4' rotate=landscape
%*- compile the annotate macros -;
*- if first time through then draw the box and the scale
*- put "set" statement processing after this line and before
the "return" -;
proc ganno annotate=test;
Go back to the home page.
E-mail the macro and web site author.