- 阅读权限
- 255
- 威望
- 0 级
- 论坛币
- 294 个
- 通用积分
- 2.0010
- 学术水平
- 13 点
- 热心指数
- 16 点
- 信用等级
- 13 点
- 经验
- 2473 点
- 帖子
- 112
- 精华
- 0
- 在线时间
- 330 小时
- 注册时间
- 2015-12-18
- 最后登录
- 2020-8-29
博士生
还不是VIP/贵宾
- 威望
- 0 级
- 论坛币
 - 294 个
- 通用积分
- 2.0010
- 学术水平
- 13 点
- 热心指数
- 16 点
- 信用等级
- 13 点
- 经验
- 2473 点
- 帖子
- 112
- 精华
- 0
- 在线时间
- 330 小时
- 注册时间
- 2015-12-18
- 最后登录
- 2020-8-29
 | 开心 2017-1-12 09:15:37 |
|---|
签到天数: 1 天 连续签到: 1 天 [LV.1]初来乍到
|
经管之家送您一份
应届毕业生专属福利!
求职就业群
感谢您参与论坛问题回答
经管之家送您两个论坛币!
+2 论坛币
- /*自定义标签*/
- proc format;
- value pdb
- 1="1W2X"
- 2="3H0J"
- 3="3H0Q"
- 4="3TV5"
- 5="3TVU"
- 6="3TVW"
- 7="3TZ3"
- 8="4WYO"
- 9="4WZ8"
- 10="5CTB"
- 11="5CTC"
- 12="5CTE";
- data rmsd1;
- format RowLab pdb.;
- format ColLab pdb.;
- do RowLab=1 to 12;
- do ColLab=1 to 12;
- input Value @@;
- output;
- end;
- end;
- cards;
- 0 0.224 0.25 0.226 0.236 0.248 0.267 0.407 0.418 0.239 0.27 0.363
- 0.224 0 0.246 0.23 0.242 0.225 0.303 0.442 0.459 0.245 0.257 0.41
- 0.25 0.246 0 0.305 0.275 0.242 0.324 0.394 0.386 0.262 0.289 0.378
- 0.226 0.23 0.305 0 0.145 0.129 0.216 0.398 0.41 0.149 0.162 0.331
- 0.236 0.242 0.275 0.145 0 0.137 0.194 0.324 0.306 0.127 0.137 0.301
- 0.248 0.225 0.242 0.129 0.137 0 0.224 0.34 0.326 0.122 0.137 0.301
- 0.267 0.303 0.324 0.216 0.194 0.224 0 0.39 0.392 0.214 0.257 0.345
- 0.407 0.442 0.394 0.398 0.324 0.34 0.39 0 0.132 0.351 0.309 0.205
- 0.418 0.459 0.386 0.41 0.306 0.326 0.392 0.132 0 0.328 0.294 0.181
- 0.239 0.245 0.262 0.149 0.127 0.122 0.214 0.351 0.328 0 0.14 0.296
- 0.27 0.257 0.289 0.162 0.137 0.137 0.257 0.309 0.294 0.14 0 0.273
- 0.363 0.41 0.378 0.331 0.273 0.301 0.345 0.205 0.181 0.296 0.273 0
- ;
- run;
- data rmsd2;
- if _n_ = 1 then /* Scale matrix size by the number or rows/columns */
- call symputx('size',ceil(18 * sqrt(n)));
- set rmsd1 nobs=n;
- Outline = ifn(Value > 1, Value, .); /* Outline the nonmissing values (Value > 1) */
- output;
- run;
- proc print data=rmsd2(obs=13);
- id RowLab ColLab;
- run;
- %put &size;
- proc template;
- define statgraph matrix;
- begingraph / designheight=%eval(250+&size) /* Size: a bit higher than wider */
- designwidth =%eval(200+&size);
- entrytitle "RMSD Matrix";
- layout overlay / yaxisopts=(discreteopts=(tickvaluefitpolicy=none)
- display=(tickvalues) reverse=true)
- xaxisopts=(discreteopts=(tickvaluefitpolicy=rotate)
- display=(tickvalues));
- * Heat map provides the background color for each cell;
- heatmapparm y=RowLab x=ColLab colorresponse=Value /
- ColorModel=(GraphWalls:color ThreeColorRamp:StartColor);
- * Heat map provides the outlines;
- heatmapparm y=RowLab x=ColLab colorresponse=Outline /
- ColorModel=(GraphWalls:Color ThreeColorRamp:StartColor)
- display=all includemissingcolor=false fillattrs=(transparency=1)
- outlineattrs=graphdata2(thickness=1);
- * Textplot provides the values;
- textplot y=RowLab x=ColLab text=eval(put(Value,5.3)) /
- textattrs=(size=12px) position=center;
- endlayout;
- endgraph;
- end;
- run;
- proc sgrender data=rmsd2 template=matrix;
- run;
复制代码

扫码加我 拉你入群
请注明:姓名-公司-职位
以便审核进群资格,未注明则拒绝
|
|
|