O'Reilly logo

SAS/GRAPH: Beyond the Basics by Robert Allison

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required