在同一个坐标系下绘制y1=x*x-4x+1和y2=3*x+1的散点图,用红色的“+”绘制y1=x*x-4x+1 的散点图,不;用蓝色圆点并绘制y2=3x+1的图,只需绘制0≤x≤4区域内图形。【图片】可以实现的代码如下______。
A.
DATA lines; DO X=0 TO 4 by 0.2; Y1=x*x-4*x+1; Y2=3*x+1; END; SYMBOL1 V=PLUS C=blue SYMBOL2 i=j V=dot C=red PROC GPLOT data=lines; PLOT Y1*X=1 Y2*x=2/overlay ; RUN;
B.
DATA lines; DO X=0 TO 4 by 0.2; Y1=x*x-4*x+1; Y2=3*x+1;OUTPUT; END; SYMBOL1 V=PLUS C=blue; SYMBOL2 i=j V=dot C=red; PROC GPLOT data=lines; PLOT Y1*X=1 Y2*x=2/overlay ; RUN;
C.
DATA lines; DO X=0 TO 4 by 0.2; Y1=x*x-4*x+1; Y2=3*x+1; END; SYMBOL1 V=PLUS C=RED; SYMBOL2 i=j V=dot C=BLUE; PROC GPLOT data=lines; PLOT Y1*X=1 Y2*x=2; RUN;
D.
DATA lines; DO X=0 TO 4 by 0.2; Y1=x*x-4*x+1; Y2=3*x+1;OUTPUT; END; SYMBOL1 V=PLUS C=RED; SYMBOL2 i=j V=dot C=BLUE; PROC GPLOT data=lines; PLOT Y1*X=1 Y2*x=2/overlay ; RUN;