我用两个分类自变量sss和ses(0和1)和一个因变量做箱式图,但这个图形把每个变量重叠在了一起,见图和语法,请问一下是哪里出错了,怎么把0的颜色和1的颜色统一,怎么把ses和sss标出,谢谢!
语法
proc sgplot data=Work.Sessss;
vbox DyT/group=sesgr;
vbox DyT/group=sssgr;
title'Box Plot for different level of SES and SSS for dependency score';
label DyT='dependency score';
label sesgr='socioeconomic stratum';
keylegend/location=inside position=topright across=2;
run;
结果: