BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
HappySASUE
Quartz | Level 8

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 swimmerplots.pngrun;

1 ACCEPTED SOLUTION

Accepted Solutions
ChrisNZ
Tourmaline | Level 20

1. You still haven't posted your code properly.

2. Please look at the offsetmax option and report.

View solution in original post

2 REPLIES 2
ChrisNZ
Tourmaline | Level 20

1. You still haven't posted your code properly.

2. Please look at the offsetmax option and report.

HappySASUE
Quartz | Level 8

Chris, Thank you for your guidance. I will follow your advice for next question. 

I'd solved this question this time. 

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 954 views
  • 0 likes
  • 2 in conversation