Chapter Contents |
Previous |
Next |
The G3GRID Procedure |
Procedure features: |
| |||||
Data set: | REFLIB.NUMS | |||||
Sample library member: | GR30N02 |
This example then specifies a smoothed spline interpolation method on the GRID statement. As shown by the following output, the resulting surface plot is smoother still.
libname reflib 'SAS-data-library'; goptions reset=global gunit=pct border cback=white colors=(black blue green red) ftext=swiss ftitle=swissb htitle=5 htext=3; |
title 'Surface Plot After Spline Interpolation'; footnote j=r 'GR30N02(a) '; |
proc g3grid data=reflib.nums out=spline; grid y*x=z / spline axis1=-5 to 5 by .5 axis2=-5 to 5 by .5; run; |
proc g3d data=spline; plot y*x=z ; run; |
title 'Surface Plot After Smoothed Spline Interpolation'; footnote j=r 'GR30N02(b) '; |
proc g3grid data=reflib.nums out=smoothed; grid y*x=z / spline smooth=.05 axis1=-5 to 5 by .5 axis2=-5 to 5 by .5; run; |
proc g3d data=smoothed; 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.