SUPPORT / SAMPLES & SAS NOTES
 

Support

Sample 48333: Create a broken axis panel graph using the GCHART and GREPLAY procedures

DetailsCodeResultsAboutRate It
This sample uses the GCHART procedure together with the GREPLAY procedure to create a broken axis panel graph. The data for the vertical axis variable used in this sample ranges from 0 to 220. However, the graph that this sample code creates is a two-panel graph, where the vertical axis range for the lower graph ranges from 0 to 25 and the vertical axis range for the upper graph ranges from 205 to 220.

The sample code on the Full Code tab first uses DATA step code to separate the original data set into two unique data sets. Two GCHART procedure steps are then used to create the two individual graphs. In a final step, the GREPLAY procedure is used to stack the two graphs on top of each other.


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.