如何保留标签为1位小数点,本人写了段程序,分娩不同月份(ym)的产仔数(F12),图像处理后标签显示3位小数点,很难看,能不能保留1位小数。
proc sgplot data=pzfm3;
vbar ym/ stat=freq barwidth=0.3 fillattrs=(color=green) transparency=0.4 legendlable= "分娩数" y2axis DATALABEL datalabelattrs=(Size=8pt
color=green Weight=Bold);
vline ym/ response=f12 stat=mean markers legendlable= "总仔" DATALABEL datalabelattrs=(Size=8
Weight=Bold colort=blue );
vline ym/ response=f13 stat=mean markers legendlable= "活仔" DATALABEL datalabelattrs=(Size=8
Weight=Bold colort=red );
TITLE "分娩数与产仔数(月度)" ;
xaxis label="分娩月份";
y2axis label="分娩数" VALUES=(0 TO 600 BY 100);
yaxis label="产仔" GRID VALUES = (0 TO 16 BY 1);
run;