SUPPORT / SAMPLES & SAS NOTES
 

Support

Sample 49568: Add a right vertical axis to a graph generated with the Graph Template Language (GTL)

DetailsCodeResultsAboutRate It
In order to give a better indication of the values for particular data points, you might want to display a right vertical axis on your graph. Adding a second Y axis is not feasible for bar charts using the ODS Graphics Statistical Graphics (SG) procedures such as PROC SGPLOT. However, with the Graph Template Language (GTL), you can plot the data values on the right vertical axis by including the YAXIS=Y2 option in the SCATTERPLOT statement.

See the sample code on the Full Code tab for an illustration.


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.