小编BB1*_*BB1的帖子

SAS:如何使用ODS布局在8个PDF页面上放置8个图表?

我正在使用SAS ODS创建PDF文档.下面的代码可以将4个图形放在1页上.但是,如果我尝试在2页上放置8个图形,我得到的就是1页上的4个图形.我尝试在星号行之间复制部分并在"ods pdf close"上面再次粘贴它.但那没用.我也尝试添加"ods startpage = now;" 两者之间,但也没有用.如何在2页上放置8个图表?

goptions reset=all;

data test;
input x y @@;
datalines;
1 2 2 4 3 8 4 10 5 15
;
run;
ods pdf file="[path]/output.pdf" ;

****
ods layout Start width=10in height=8in ;
ods region x=0 y=5% width=45% height=45%;
proc gplot data=test;
title2 'PLOT #1';
plot y*x /name="mygraph1" noframe;
run;
ods region x=55% y=5% width=45% height=45%;
title2 'PLOT #2';
plot y*x /name="mygraph2" noframe;
run;
ods region x=0 y=51% width=45% height=45%;
title2 'PLOT #3'; …
Run Code Online (Sandbox Code Playgroud)

pdf graph sas sas-ods

7
推荐指数
1
解决办法
7219
查看次数

标签 统计

graph ×1

pdf ×1

sas ×1

sas-ods ×1