Chapter Contents

Previous

Next
The G3GRID Procedure

Overview

The G3GRID procedure processes an existing SAS data set to create a data set that the G3D or GCONTOUR procedure can use to produce three-dimensional surface or contour plots. The procedure creates a data set whose horizontal (x and y) variable values form a complete grid, and it interpolates the value of the vertical (z) variables for each point on the x-y plane. Using the G3GRID procedure, you can

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

Scatter Plot of Data Set before G3GRID Processing (GR30N01(a)) and Surface Plot of Data Set after G3GRID Processing (GR30N01(b)) illustrate the effect of the G3GRID procedure on data.

Scatter Plot of Data Set before G3GRID Processing (GR30N01(a)) 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 (GR30N01(a))

[IMAGE]

Surface Plot of Data Set after G3GRID Processing (GR30N01(b)) shows a surface plot of the data set that is created by a G3GRID interpolation of the original data set shown in Scatter Plot of Data Set before G3GRID Processing (GR30N01(a)).

Surface Plot of Data Set after G3GRID Processing (GR30N01(b))

[IMAGE]

Note:   The evenly distributed horizontal (x, y) data points form a grid for the three-dimensional graph.  [cautionend]


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.