BookmarkSubscribeRSS Feed
HappySASUE
Quartz | Level 8

How to modify or shrink the size of a plot inside the frame? The label "subject" is overlapped with first patient id. 

Thanks a lot! 

 

Here are part of my code. 

 

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;

ods listing close;

options nodate nonumber;
ods &filetype file = "&output.\&outname..&filetype" style = styles.&rpttype. nogfootnote nogtitle startpage = yes bookmark="&outname";

options orientation=landscape nocenter spool;
goptions reset=goptions reset=axis xmax=8.5 in ymax=5.0 in ftext = "arial" device=sasemf;
ods graphics /reset=all border=off width=850px height=500px;

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

ods listing;
ods rtf close;

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

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
  • 0 replies
  • 1206 views
  • 0 likes
  • 1 in conversation