各位大牛,我想请问用如何设定SG中text在图中的显示?我本来想显示成两行:第一行是probability ,第二行是RSMCR>AVERAGE,但实现不了,请问怎么设定啊?下面是我写的SG数据集和最后出的图。
data anno;
length textweight $ 50 y1space $ 12 label $ 35 function $20;
set hlm (keep=unit pro_over_average);
rename unit=yc1;
retain y1space "datavalue" x1space "graphpercent" x1 85 function "text" y1 .
textcolor "black" textweight "normal";
label=put(pro_over_average, F5.3);
run;
data headers1;
length textweight $ 50 function $20;
length label $35;
retain y1space "graphpercent" x1space "graphpercent" function "text" y1 92
textcolor "black" textweight "bold" x1 85 label "Prob";
output;
run;
data headers2;
length textweight $ 50 function $20;
length label $35;
retain y1space "graphpercent" x1space "graphpercent" function "textcont" y1 91
textcolor "black" textweight "bold" x1 85 label "RSMCR>AVERAGE";
output;
run;
proc append base=anno(drop=pro_over_average) data=headers2 force nowarn;
run;
proc append base=anno(drop=pro_over_average) data=headers1 force nowarn;
run;