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 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

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

View all other training opportunities.

Discussion stats
  • 0 replies
  • 1030 views
  • 0 likes
  • 1 in conversation