Sample 25604: Default G3GRID interpolation method
This sample is from the "SAS/GRAPH Software: Reference, Version 8", Volume 2, Chapter 30.
For additional information on the sample refer to this book.
/*+-------------------------------------------------------------+
| S A S S A M P L E L I B R A R Y |
| |
| NAME: GTGDEFIN |
| TITLE: GTGDEFIN-Default G3GRID Interpolation Method |
| PRODUCT: GRAPH |
| SYSTEM: ALL |
| KEYS: GRAPHICS GOPTIONS G3GRID G3D |
| PROCS: G3GRID G3D |
| DATA: INTERNAL |
| |
| SUPPORT: GRAPHICS STAFF UPDATE: |
| REF: SAS/GRAPH REFERENCE GUIDE |
+-------------------------------------------------------------+*/
/* Set the graphics environment */
goptions reset=all gunit=pct border cback=white
colors=(blue black green red)
ftext=swiss ftitle=swissb htitle=6 htext=3;
/* Create data set WORK.NUMS using */
/* a set of randomly sampled points */
data 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;
/* Define title and footnote for graph */
title 'Scatter Plot of NUMS Data Set';
footnote j=r 'GTGDEFIN(a)';
/* Generate the scatter plot */
proc g3d data=nums;
scatter y*x=z;
run;
/* Process points with PROC G3GRID */
proc g3grid data=nums out=default;
grid y*x=z / axis1=-5 to 5 by .5
axis2=-5 to 5 by .5;
run;
/* Define title and footnote for graph */
title 'Surface Plot After Default Interpolation';
footnote j=r 'GTGDEFIN(b)';
/* Show the surface graph */
proc g3d data=default;
plot y*x=z;
run;
quit;

This example demonstrates the default interpolation method that is used by the GRID statement.
| Type: | Sample |
| Topic: | Query and Reporting ==> Creating Reports ==> Graphical ==> Graph Elements ==> Symbols/Interpolation SAS Reference ==> Procedures ==> G3GRID SAS Reference ==> Procedures ==> G3D
|
| Date Modified: | 2005-09-22 03:03:15 |
| Date Created: | 2005-05-23 14:18:26 |
Operating System and Release Information
| SAS System | SAS/GRAPH | All | 8 TS M0 | n/a |