- 阅读权限
- 255
- 威望
- 3 级
- 论坛币
- 10965 个
- 通用积分
- 5.0866
- 学术水平
- 452 点
- 热心指数
- 463 点
- 信用等级
- 347 点
- 经验
- 76409 点
- 帖子
- 1937
- 精华
- 1
- 在线时间
- 3428 小时
- 注册时间
- 2009-5-22
- 最后登录
- 2020-1-26
|
It looks like so hard to exactly match the original color. JingJu
- /*create normal density data*/
- data have;
- do x =0 to 100 by .1;
- call missing(x1, y1, y2);
- i ++1;
- y =pdf('normal', x, 50, 10);
- if mod(i-1, 100) =0 then x1 =x; /*define needle plot variable*/
- if 30 <=x <=70 then y1 =y; /*define band plot variable*/
- if 40 <=x <=60 then y2 =y;
- output;
- end;
- run;
- ods html ; title;
- ods graphics / reset width=600px height=400px imagename="nor" imagefmt=jpg;
- proc sgplot data =have noautolegend;
- ....
- xaxis values =(0 to 100 by 10) label='Height (cm)';
- yaxis values =(0 to 0.04 by 0.01) label='Frequency';
- run;
- ods _all_ close; ods listing;
复制代码
|
-
nor.JPG
(49.6 KB)
normal density plot
-
总评分: 学术水平 + 1
热心指数 + 1
信用等级 + 1
查看全部评分
|