Example: Design a Simple Multi-Cell Graph

The graph that you create in this topic contains two cells: one with a histogram and another with a box plot.
Simple graph with two cells
There is more than one way to create this graph in the designer. The following procedure describes one method:
  1. If the Graph Gallery is not displayed, select Viewthen selectGraph Gallery to display it.
  2. In the Basic tab of the Graph Gallery, click the Histogram icon, and then click OK. The Histogram icon looks like this:
    Histogram icon
    The Assign Data dialog box opens.
  3. In the Assign Data dialog box, select the following:
    Library
    Select SASHELP from the list box.
    Data Set
    Select CARS from the list box.
    X
    Select HORSEPOWER from the list box.
    Assign Data dialog box, variables for the simple graph
    Click OK.
  4. Right-click the graph and select Add a Row. A new row is added beneath the histogram. The new row contains the text "drop a plot here."
    New blank row added to graph
  5. From the Plot Layers panel of the Elements pane, click and drag the Box(H) icon to the blank row in your graph. (If the Elements pane is not visible, select Viewthen selectElements to display it.) The Box(H) icon looks like this:
    Box(H) icon
    The Assign Data dialog box opens.
  6. In the Assign Data dialog box, select HORSEPOWER from the Y variable list box. Then click OK.
    Note: You do not need to select anything for the X variable.
  7. Right-click the X axis label (Horsepower) and select Common Column Axis. Both plots now share the same axis, as seen in the following display.
    Both plots share the same axis
  8. Double-click the title text box (where it says "Type in your title") and type Horsepower Percentages.
  9. Right-click the footnote text box and select Remove Footnote. The footnote text box disappears.
  10. Reduce the size of the box plot.
    1. Click the box plot. A dashed line appears around the perimeter of the plot.
    2. Position the cursor over the upper edge of the dashed line. The cursor changes to a two-headed arrow arrow with two heads.
    3. Click and drag the dashed line downward. The box plot becomes shorter, and the histogram becomes taller.
  11. (Optional) Save the graph. For instructions, see Save a Graph.
Tip
You can create a similar graph by selecting the Data Profile 2 graph icon from the Analytical tab of the Graph Gallery.