EXAMPLE 7  Adding Border Space

Purpose: Describe tricks that can be used to add the desired amount of white space on all sides of a graph.

Of all the SAS/GRAPH tricks that I use, this is probably the one I use most frequently.

It is often very useful to be able to control the amount of white space on the top, bottom, left, and right of a graph. One way to do that is to use blank TITLE and FOOTNOTE statements. In this example, I use a very simple bar chart to demonstrate the technique, but do not let the simplicity of the bar chart over-shadow the power of the technique I will be using to control the white space.

Here is the code for the simple default bar chart:

axis1 label=none minor=none;
axis2 label=none value=(angle=90);
pattern1 v=solid ...

Get SAS/GRAPH: Beyond the Basics now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.