Proc G3d

Contents Index


Proc g3d is used to make 3 dimensional plots. The typical invocation is

proc g3d data=stuff;
plot light*water=yield / grid;
run;

This plots yield values on the z axis as a function of light and water on the x and y axis. The grid option makes a grid in the x-y plane.

Additional options which can be specified after the / of the plot command are noaxes to suppress axes and axis labels, xticknum=n to specify the number of x axis ticks which are used, yticknum=n to specify the number of y axis ticks which are used, zticknum=n to specify the number of z axis ticks which are used, zmax=value to specify the maximum z value to include in the plot, and zmin=value to specify the minimum z value to include in the plot. There are numerous other options.

The scatter command can be used instead of plot to produce a scatter plot of the data. Example:

proc g3d data=stuff;
scatter light*water=yield;
run;

Numerous options are available.

For additional information see the SAS/GRAPH User's Guide.


Contents Index

Copyright © 1997 by Jerry Alan Veeh. All rights reserved.