我正在寻找一个选项来添加一个组标签(X轴的分组值)。我尝试了X2AXIS和REFLINE选项,但没有一个是完全有效的。(见附图以供参考-我想添加带括号的G1、G2和G3 )

发布于 2021-03-23 09:41:42
作为一个起点,请考虑
data have;
call streaminit(2021);
do x = 1 to 6;
do _n_ = 1 to 2+ rand('integer', 5);
y = 5 + rand('integer', 10);
group = cats ('G', int((x+1)/2));
output;
end;
end;
run;
ods html file='plot.html';
proc sgplot data=have;
vbox y / group=group category=x;
run;
ods html close;它会产生

https://stackoverflow.com/questions/66755513
复制相似问题