SUPPORT / SAMPLES & SAS NOTES
 

Support

Sample 24862: Control the order and range of the X, Y and Z axes with PROC G3D

DetailsCodeResultsAboutRate It
This sample program uses PROC G3D to control the range of the X, Y and Z axes.

There are several different ways this program could have been designed. In this example, the axis ranges are controlled with macro values that the user manually provides. If there are data values that are outside the macro value ranges, then the macro values will be ignored. If you wanted to force the macro values to override the input data ranges, you will need to write a DATA step that deletes the X, Y and/or Z data values that were outside the associated macro value ranges in order to control the axes ranges.

You can also make this program more dynamic by capturing the minimum and maximum values for the X, Y and Z variables using PROC MEANS. Then create an alogorithm that adds or subtracts a calculated value to the minimum and maximum of each X, Y and Z data value range. Finally, add the new X, Y and Z values to the two dummy observations (as shown in the sample code).


These sample files and code examples are provided by SAS Institute Inc. "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and fitness for a particular purpose. Recipients acknowledge and agree that SAS Institute shall not be liable for any damages whatsoever arising out of their use of this material. In addition, SAS Institute will provide no support for the materials contained herein.