SAS GPLOT 画图

来源:互联网 发布:软件实施工程师面试 编辑:程序博客网 时间:2024/05/22 15:15
libname exports "\\hqdellsas04\exports\apj\";goptions reset=all;proc tabulate  data=exports.diamonds;class clarity color cut;* var clarity color cut ;table clarity , color , cut;run;goptions reset=all;proc gplot data=exports.diamonds;plot price*carat;symbol1 value=diamond color=big interpol=join  ci=blue;where cut='Ideal' and color='D' and clarity='I1';run;goptions reset=all;title c=green 'Trend of Diamonds price';title2 height=2 '2014-05-26';proc gplot data=exports.diamonds;plot z*carat  x*carat/overlay caxis=blue  ctext=blue;symbol1 value=diamond color=red line=1 width=2 CI=red pointlabel interpol=rc;symbol2 value=diamond color=green line=1 width=2 CI=green pointlabel interpol=rc;where cut='Ideal' and color='D' and clarity='I1';run;goptions reset=all;title c=pink 'Trend of Diamonds price';title2 height=2 '2014-05-26';proc gplot data=exports.diamonds;plot price*carat=color/overlay caxis=blue  ctext=blue;symbol1 value=diamond color=red line=1 width=2 CI=red pointlabel interpol=rc;symbol2 value=star color=green line=2 width=2 CI=blue pointlabel interpol=join;symbol2 value=circle color=blue line=3 width=2 CI=blue pointlabel interpol=rc;where cut='Ideal' and color in ('D','E', 'G') and clarity='I1';run;

0 0
原创粉丝点击