SAS用于文章投稿的图片导出设置

英文文章投稿时常常会在author guideline中看到要求图片分辨率至少为300dpi,在此总结用SAS如何导出符合要求的图片。
SAS proc sgplot
SAS 导出用proc sgplot 绘制的图片可以用ods listing和ods graphics,具体代码如下:
ods listing gpath="C:\Users\Desktop" image_dpi=300 style=Journal;
ods graphics / imagename="Figure1" outputfmt=tiff width=10cm height=8cm border=off;
部分含义如下:
gpath 指定输出路径;
image_dpi 指定图片输出分辨率;
imagename 命名图片;
outputfmt 指定图片格式,可以有PNG,TIFF,JPEG等;
width 和 height 分别制定图片宽度和高度;
border 设置图片之间是否有分界。
另外,也可以根据需求选择ods pdf等格式输出图片。


请前往:http://www.mark-to-win.com/TeacherV2.html?id=166