SAS - 如何将多个图表放入一个页面

时间:2013-11-23 16:27:06

标签: pdf sas sas-ods

尝试将多个图表(来自proc sgplot)放入一个带有SAS的PDF页面,需要您的帮助。有什么好的解决方案吗?

由于图形是使用proc sgplot创建的,因此SAS catolog中没有存储结果,这使得proc greplay不起作用。我还尝试将png存储在光盘中并将其读回SAS,然后运行greplay。然而,图表的质量在其中恶化。

这是一份大报告,需要每周更新,手工工作将是一场灾难...

谢谢。

2 个答案:

答案 0 :(得分:1)

查看ODS声明中的startpage=选项。具体来说,startpage=no只会在当前的页面已满时启动新页面。 startpage=yes是默认值,并在每个PROC边界上启动新页面。

答案 1 :(得分:0)

我之前尝试过这个并且发现它很漂亮,但如果你有兴趣尝试一下,这应该是你要求的。只需更改x,y,宽度和高度即可适合每个区域所需的尺寸。

ods pdf file='file.pdf' startpage=no;

ods layout start width=8in height=10.5in; /*identify width and height of entire page leaving room for margins*/
ods region x=0in width=2.25in y=0in height=5in; /*identify region boundaries*/
{code with output}
ods region x=2.5in width=2.25in y=0in height=5in; /*identify region boundaries*/
{code with output}
ods region x=5in width=2.25in y=0in height=5in; /*identify region boundaries*/
{code with output}
ods region x=0in width=8in y=5.25in height=5in; /*identify region boundaries*/
{code with output}
ods layout end;

x =水平起点

width =区域宽度(x +宽度=水平终点)

y =垂直起点

height =区域的高度(y +高度=垂直终点)

相关问题