全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
5020 4
2010-01-25
SAS9.2版如何生成.eps格式的图片?
在sas网站上看到个需要的图形,程序和图形如下,但我相要生成.eps格式的图片,不知道该如何更改?
proc format;   value $trt      'B' = "Treatment 20mg"      'S' = "Treatment 10mg"      'P' = "Placebo";   value visit      1='Baseline'      2='6 Months'      3='9 Months';run;data response;  input trt $ week perc lo hi end;  x1=15;  format trt $trt.;  cards;P  0  0    0     0    .P  3  2    1.25  2.75 . P  6  -.5 -1.2  .5    . P  9  1   -.5   1.75  .P 12  2.25 .5   3.25  2.25P 15  3    -.25 4.25  3.85S  0  0    0     0    .S  3  8    7.25  8.75 .   S  6  7.5  6.5   8.75 . S  9  7.5  6.5   8.75 . S 12  7.75 6.5   8.5  7.75 S 15  7.5  5.0   8.25 3.7B  0  0    0     0    .B  3  12   11.25 12.75 .B  6  13   12.25 13.75 .B  9  13.25 12.5 14.0  .  B 12  13    12.25 13.75 13 B 15  12.85 12.1  13.6  3.6;run;title "Mean Percent Change from Baseline";title2 " ";ods listing close;ods graphics / reset width=600px height=400px imagename='Allergy' imagefmt=gif;ods html file='allergy.html' path='.' style=allergy; proc sgplot data=response;  band y=x1 lower=12.1 upper=15 / transparency=.8 fillattrs=graphdata1;  scatter x=week y=perc / group=trt yerrorlower=lo yerrorupper=hi    markerattrs=(symbol=circlefilled) name="scat";  series x=week y=perc / group=trt lineattrs=(pattern=solid);  series x=week y=end / group=trt markers lineattrs=(pattern=shortdash)    markerattrs=(symbol=circle);  xaxis integer values=(0 to 15 by 3) label="Weeks in Treatment";  yaxis label="Percent Change";  refline 0;   refline 13.55 / axis=x label="|--Washout--|"    labelloc=outside labelpos=min lineattrs=(thickness=0px);  keylegend "scat" / title="" noborder;run;ods html close;ods listing;
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2010-1-25 10:22:58
程序有点乱,但应当还是可以直接复制运行的,或查看相关连接
http://support.sas.com/kb/35/053.html
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2010-1-25 12:45:31
图片保存的时候选择就是了
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2010-1-25 14:33:36
3楼的版主你的回答貌似很不科学,如果另存可以的话,我大可不必来这里问
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2010-1-26 08:28:42
realgod5417 发表于 2010-1-25 10:22
程序有点乱,但应当还是可以直接复制运行的,或查看相关连接
http://support.sas.com/kb/35/053.html
Change the c:\downloads\plots.ps into the your desired location.

Hope this helps.

filename outfile 'c:\downloads\plots.ps';

          goptions device=PS  gsfname=outfile gsfmode=replace;
          options ls=90;

   title1 color= blue  "my testing plot";

  proc gplot data=sashelp.class;
          plot Height  *  Weight ;
  run;
  quit;
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群