Previous Page | Next Page

The G3GRID Procedure

Overview

The G3GRID procedure processes an existing SAS data set to create a data set that the G3D procedure or the GCONTOUR procedure can use to produce a three-dimensional surface plot or a contour plot. The procedure creates a data set whose horizontal X-Y variable values form a complete grid, and it interpolates the values of the vertical Z variable for each point on the X-Y plane.

Using the G3GRID procedure, you can do the following actions:

The G3GRID procedure does not produce graphics output. Proc G3GRID produces an output data set that you can use as the input data set for Proc G3D or Proc GCONTOUR.

Scatter Plot of Data Set Before G3GRID Processing (gtgdefin), and Surface Plot of Data Set After G3GRID Processing (gtdefin) illustrate the effect of the G3GRID procedure on data.

This figure shows a collection of data points, where z=f(x,y). These points are randomly distributed, and cannot be displayed with a G3D surface plot, although they can be displayed with a scatter plot.

Scatter Plot of Data Set Before G3GRID Processing (gtgdefin)

[Scatter Plot of Data Set Before G3GRID Processing]

The following figure shows a surface plot of the data set that is created by a G3GRID interpolation of the original data set shown in the preceding figure. The evenly distributed horizontal (x,y) data points form a grid for the three-dimensional plot.

Surface Plot of Data Set After G3GRID Processing (gtdefin)

[Surface Plot of Data Set After G3GRID Processing]

Previous Page | Next Page | Top of Page