Does anyone know to shrink the size of the plot inside a frame? Should I use annot? any option I or statement I should use in proc template? ODS graphic?
Thanks a lot!
Here are the code I used. and please see the bottom photo: label and patient's ID in swimmer plot are overlapped.
1 Data anno2;
2 length label $200 x1space $20 y1space $20 ;
3 retain function "text" anchor "left";
4 x1space="Graphpercent";
5 x1=5;
6 y1space="Graphpercent";
7 y1=96.5;
8 width=200;
9 label="Subject(*)";
10 id="xxxx";
11 run;
12 data anno2_;
13 set swimmer;
14 keep item subjid;
15 run;
16 data anno2_;
17 set anno2_;
18 length label $200 x1space $20 y1space $20 ;
19 retain function "text" anchor "left";
20 x1space="Graphpercent";
21 x1=5;
22 y1space="DATAVALUE";
23 y1=item;
24 width=0;
25 label=strip(subjid);
26 id="xxxx";
27 run;
28 data anno2;
29 set anno2 anno2_;
30 run;
31 proc sgrender data=swimmer template=swimmer_plot sganno=anno2;
32 run;
1. You still haven't posted your code properly.
2. Please look at the offsetmax option and report.
1. You still haven't posted your code properly.
2. Please look at the offsetmax option and report.
Chris, Thank you for your guidance. I will follow your advice for next question.
I'd solved this question this time.
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.