如图,这个箱式图,想把纵坐标范围标的更窄一些才清晰,请高手赐教
程序如下:
data aa;
set h.m0815z151;
if flag=3 then disease_stage="Cirrhosis";
if flag=2 then disease_stage="CHB";
if flag=4 then disease_stage="HCC";
annual_total_medical_cost=sumfybtx1;
drop year;
data aa;
set aa;
year=in_year;
label year="就诊年份";
run;
proc sort data=aa;
by year;
run;
proc template;
define style MystyleDefault;
parent=Styles.statistical;
style GraphLabelText from GraphLabelText/fontsize=14px;
style GraphValueText from GraphValueText/fontsize=12px;
end;
run;
ods html style=MystyleDefault;
proc sgplot data=aa;
yaxis label="年直接医疗费用/元";
xaxis label="疾病病程";
vbox annual_total_medical_cost/ category=disease_stage group=year;
run;