我正在使用sgplot创建直方图。
有人知道如何以对数刻度显示x轴吗?
我尝试遵循以下文档,但似乎不起作用。 我收到以下警告:
NOTE: Log axis cannot support zero or negative values in the data range.
The axis type will be changed to LINEAR.
data Have;
call streaminit(12345);
do i = 1 to 10000;
t = abs(rand("normal", 0, 5));
x = exp(t);
y = rand("Normal");
if abs(x)>1 then output;
end;
run;
proc sgplot data=have;
histogram x;
xaxis type=log logbase=10 logstyle=logexpand
logvtype=exponent
min=1 max=8;
run;