1、横坐标 study day,纵坐标 subject,顺序按照泳道从长到短排列。
2、proc template或者proc sgplot都可产生,此处主要用到 highlowplot 语句。high用来定义在x轴的结束时间,low用来定义x轴的开始时间(一般为1,默认从Day1开始)。y轴一般是根据排序自定义的变量(下文中使用yaxia1)。
注意:由于我是想从长到短排列,那对于y轴的值需要自己定义format。例如yaxia1=1对应的人时间最短,yaxia1=20对应的人时间最长。
proc template;
define statgraph swim;
begingraph / designwidth=2000px designheight=1400px border= false;
entrytitle halign=left ""/ textattrs=(size=8 family="Simsun" weight=GraphLabelText:FontWeight) ;
layout overlay / yaxisopts=(offsetmin=0.02
linearopts=(viewmax=20 viewmin=0 tickvaluesequence=(start=1 end=20 increment=1))
label="Subjects" labelattrs=(size=10) griddisplay=off