lz,下面的示例程序 希望 对你有所帮助:
data a;
input x f;
cards;
1 5
2 10
3 15
4 20
5 25
6 20
7 15
8 10
9 5
;
proc univariate noprint;
var x;
freq f;
histogram x/normal(color=red w=3) /*设置正态曲线的颜色和宽度*/
cframe=black /*设置直方图底色*/
cfill=blue /*设置直方图颜色*/
cbarline=white; /*设置直方图外框线颜色**/
run;