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. 

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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