contains one or more graphs that you create and design in the designer. In addition to
the graphs, you can display the Graph Gallery, a collection of predefined graphs.
Example of Using the Designer
About This Example
In this example, you create a paneled graph with two cells, each containing different
types of plots. The graph shows the horsepower distribution for automobiles. The
example uses the SASHELP.CARS data.
Display 5.1 Two-Cell Graph Example
There are several ways to create and customize this graph. The following steps show one
way to create the graph.
Step One: Create the First Cell and Assign Data
1. Start the ODS Graphics Designer. In the SAS windowing environment, select Tools
ð ODS Graphics Designer. The designer opens and displays the Graph Gallery.
2. On the Basic tab of the Graph Gallery, double-click the Histogram icon.
Example of Using the Designer 27
The Assign Data dialog box appears. When you create a graph from the Graph
Gallery, the graph has placeholder data assigned to its plot. The Assign Data dialog
box enables you to easily change the data that is associated with the plot.
3. In the Assign Data dialog box, complete these steps:
Select SASHELP from the Library list box.
Select CARS from the Data Set list box.
Select HORSEPOWER from the X list box.
4. Click OK.
28 Chapter 5 Using the ODS Graphics Designer
5. From the Plot Layers panel of the Elements pane, click and drag the Normal icon
to the graph.
The Assign Data dialog box appears.
6. In the Assign Data dialog box, do not change the default selections.
Click OK. A normal curve is added to your graph.
Here are the results of your graph so far.
Example of Using the Designer 29
Step Two: Add a Second Cell, Adjust Cell Height, and Use a
Common Axis
1. Right-click anywhere within the plot area and select Add a Row. A new row cell is
added below the histogram.
2. From the Plot Layers panel, click and drag the Box(H) icon to the new cell. The
Assign Data dialog box appears.
3. In the Assign Data dialog box, complete these steps:
Select SASHELP from the Library list box.
Select CARS from the Data Set list box.
Select HORSEPOWER from the Y list box.
4. Click OK.
Both cells in the graph currently have the same height. In the next step, you adjust
the cell height so that the histogram has more space.
5. To adjust the height of the two cells:
a. Position the cursor between the two cells of the graph. A dashed line appears
between the cells and the cursor changes to a two-headed arrow .
b. Click and drag the dashed line downward. The cell with the histogram becomes
taller, and the cell with the box plot becomes shorter.
6. Specify that both cells share a common X axis.
Right-click the bottom axis label and select Common Column Axis.
Here are the results of your changes.
30 Chapter 5 Using the ODS Graphics Designer

Get SAS® 9.3 ODS Graphics: Getting Started with Business and Statistical Graphics 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.