SAS 画图默认的好像都在一象限内,如下图:
坐标系就是y>0,x>0的部分。
如果现在想要画带四个象限的图,坐标原点是(0,0),但是X,Y轴都有小于0的区域。如:
怎么操作?难道 非用ANNOTATE ?
如下面的例子:
data demo;
do x=-10 to 10 ;
y=2*x;
output;
end;
run;
goptions reset=all;
axis1 order=(-13 to 13 by 1);
axis2 order=(-23 to 23 by 1);
symbol c=red i=join;
proc gplot;
plot y*x/ haxis=axis1 vaxis=axis2;
run;
虽然把x,y的刻度延伸了,但还是只是在第一象限内。
想到过用ORIGIN(),结果只是将整个坐标的起始位置平移。
各位,有什么好的方法不?