graphics

Reply
Occasional Contributor
Posts: 18

graphics

Hi everybody,

Could you help me to produce the graphics I desire using the  information below ?;

1.plot y1 and x and join the data points by line(line1)

2. plot y2 and x and join the data points by line(line2).

3. obtain the scatter plot of y and X and overlay line1 and line2 on the scatter plot.

I want all three things on the same graph.

please scroll down for some time for the dataset it is way down at the bottotm..........

                                                                                                                                                                                                                                                         
YXy1y2
65.67-0.0024763.995464.1774
61.820.01232561.86560.9599
63.970.00274563.244363.043
63.560.00704862.624862.1074
65.2-0.0172266.118267.3835
63.990.00188463.368363.2304
65.55-0.0123165.412366.3174
63.460.00507862.908462.5357
61.260.01440761.565360.5072
62.030.00572862.814862.3944
62.280.0058562.797462.368
61.130.00776962.521161.9508
64.85-0.0030964.084864.3125
63.060.00012863.621163.6121
63.08-0.0020363.931164.0803
63.64-0.0046764.312564.6563
64.12-0.004764.31664.6617
63.69-0.0019263.915664.057
64.18-0.0029464.062564.2788
63.74-0.0022863.967864.1357
64.34-8.1E-0563.651263.6575
65.22-0.0054764.427664.8302
63.87-0.0037864.184464.4629
Super User
Posts: 19,770

Re: graphics

Posted in reply to ram_adhikari_jacks_sdstate_edu

1. Post in Graphics Section not under communities.

2. Have you checked robslink.com/SAS for an example? I'd recommend SGPLOT with three statements, series, series and scatter for your graphics.

3. Your options depend on your version of SAS and if you have SAS/GRAPH licensed, so you do need to let people know if you have that.

The SAS Example has one that does three series, you could modify it:

SAS/GRAPH(R) 9.2: Statistical Graphics Procedures Guide, Second Edition

SAS Employee
Posts: 982

Re: graphics

Posted in reply to ram_adhikari_jacks_sdstate_edu

data foo;
input y x y1 y2;
datalines;
65.67 -0.00247 63.9954 64.1774
61.82 0.012325 61.865 60.9599
63.97 0.002745 63.2443 63.043
63.56 0.007048 62.6248 62.1074
65.2 -0.01722 66.1182 67.3835
63.99 0.001884 63.3683 63.2304
65.55 -0.01231 65.4123 66.3174
63.46 0.005078 62.9084 62.5357
61.26 0.014407 61.5653 60.5072
62.03 0.005728 62.8148 62.3944
62.28 0.00585 62.7974 62.368
61.13 0.007769 62.5211 61.9508
64.85 -0.00309 64.0848 64.3125
63.06 0.000128 63.6211 63.6121
63.08 -0.00203 63.9311 64.0803
63.64 -0.00467 64.3125 64.6563
64.12 -0.0047 64.316 64.6617
63.69 -0.00192 63.9156 64.057
64.18 -0.00294 64.0625 64.2788
63.74 -0.00228 63.9678 64.1357
64.34 -8.1E-05 63.6512 63.6575
65.22 -0.00547 64.4276 64.8302
63.87 -0.00378 64.1844 64.4629
;
run;

symbol1 value=none interpol=join color=red;
symbol2 value=none interpol=join color=blue;
symbol3 value=circle height=2pct interpol=none color=purple;

proc gplot;
plot y1*x=1 y2*x=2 y*x=3 / overlay;
run;

foo.png

Ask a Question
Discussion stats
  • 2 replies
  • 169 views
  • 0 likes
  • 3 in conversation