Chapter Contents |
Previous |
Next |
The G3GRID Procedure |
Procedure features: |
| ||||||||
Other features: |
| ||||||||
Sample library member: | GR30N01 |
The example then runs the G3GRID procedure to interpolate additional x, y, and z values. Because no interpolation method is specified, the default interpolation method is used. The resulting output data set is used as input to the G3D procedure, which generates the surface plot shown in the following output.
libname reflib 'SAS-data-library'; goptions reset=global gunit=pct border cback=white colors=(black blue green red) ftext=swiss ftitle=swissb htitle=6 htext=3; |
data reflib.nums; keep x y z; do i=1 to 30; x=10*ranuni(33)-5; y=10*ranuni(35)-5; z=sin(sqrt(x*x+y*y)); output; end; run; |
title 'Scatter Plot of NUMS Data Set'; footnote j=r 'GR30N01(a) '; |
proc g3d data=reflib.nums; scatter y*x=z; run; |
proc g3grid data=reflib.nums out=default; grid y*x=z / axis1=-5 to 5 by .5 axis2=-5 to 5 by .5; run; |
title 'Surface Plot after Default Interpolation'; footnote j=r 'GR30N01(b) '; |
proc g3d data=default; plot y*x=z; run; quit; |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.