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? 

Thanks a lot! 

 

 

Here are the code I used. and please see the attachment. label and swimmer plot are overlapped. 

 


Data anno2;
length label $200 x1space $20 y1space $20 ;
retain function "text" anchor "left";
x1space="Graphpercent";
x1=5;
y1space="Graphpercent";
y1=96.5;
width=200;
label="Subject(*)";
id="xxxx";
run;

data anno2_;
set swimmer;
keep item subjid;
run;

data anno2_;
set anno2_;
length label $200 x1space $20 y1space $20 ;
retain function "text" anchor "left";
x1space="Graphpercent";
x1=5;
y1space="DATAVALUE";
y1=item;
width=0;
label=strip(subjid);
id="xxxx";
run;

data anno2;
set anno2 anno2_;
run;

 

 

proc sgrender data=swimmer template=swimmer_plot sganno=anno2;
run;

 

1 ACCEPTED SOLUTION

Accepted Solutions
ChrisNZ
Tourmaline | Level 20

Some advice to write a better post:

1. Use the {i} or the running man icon to post code

2. Avoid attaching MS Office files, many people can't or won't download them from the internet

3. An image can be added inline using the Camera icon

4. Providing a full program that includes test data ensures that people can recommend a suitable solution sooner

View solution in original post

2 REPLIES 2
ChrisNZ
Tourmaline | Level 20

Some advice to write a better post:

1. Use the {i} or the running man icon to post code

2. Avoid attaching MS Office files, many people can't or won't download them from the internet

3. An image can be added inline using the Camera icon

4. Providing a full program that includes test data ensures that people can recommend a suitable solution sooner

HappySASUE
Quartz | Level 8

Thank you! will follow. 

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
  • 1080 views
  • 0 likes
  • 2 in conversation