我在sgplot中绘制一些数据,其中y轴值非常大,从178,254,700到900,000,000。SAS生成一个图,其中的值标记为2E8 - 8E8。我尝试使用Value语句给出一个范围,但这并不能解决问题。我想要显示真实值。我该怎么做呢?
发布于 2014-05-29 22:06:03
您需要调整格式。默认格式可能是BEST8.,它将在此上下文中自动为您提供科学记数法。
如果您谈论的是数据标签,通常会在数据集本身中对其进行更改。我还展示了如何更改轴标签的格式(尽管在本例中这并不是很有趣)。
data largenumbers;
call streaminit(7);
do x = 1 to 10;
y = 1e10*rand('uniform');
output;
end;
format y 12.0; *use 12 digits total, which leaves plenty of room, and no decimal;
run;
ods preferences;
proc sgplot data=largenumbers;
series x=x y=y/ datalabel;
yaxis valuesformat=best12.0; *Here is a bug - you cannot use w.d format here. Annoying.;
run;https://stackoverflow.com/questions/23922028
复制相似问题