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.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

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