Chapter Contents

Previous

Next
Getting Started with the SAS System Using SAS/ASSIST Software

Producing a Bar Chart

This section shows you how to produce a vertical bar chart that shows the average number of square feet by the style of houses. The procedure for producing a horizontal bar chart is similar to this one.

Average Square Footage by Style Bar Chart

[IMAGE]


Instructions

  1. To create a bar chart like the one shown in the previous display, follow this selection path:

    Tasks
    [arrow]
    Graphics
    [arrow]
    Bar Charts...
    The Bar Charts window appears.

    Bar Charts Window

    [IMAGE]

  2. Select Vertical on the Bar Charts window if it is not already selected.

  3. If the active table is SASUSER.HOUSES, continue to the next step. Otherwise, select Table, and then select the SASUSER.HOUSES table. For more information on selecting tables, see Selecting a Table.

  4. If there is an active Subset Data selection (indicated with BY, WHERE, or ROWS next to the Subset data button), clear the selection. For more information, see Clearing a Subset Data Selection.

  5. If other task selections exist (for example, a column name is listed for Chart Column), follow this selection path to clear these selections:

    File
    [arrow]
    New

  6. To indicate that you want the bars of the chart to represent the mean of the square footage for each house, select Bar values from the Bar Charts window. The Bar/Slice Values window appears.

    Bar/Slice Values Window

    [IMAGE]

  7. Select Mean as the statistic from the Bar/Slice Values window.

  8. Select Analysis column from the Bar/Slice Values window, and then select the SQFEET column. For more information, see Selecting a Column.

  9. Select OK. The Bar/Slice Values window disappears.

  10. Select Chart column. Then select the STYLE column.


Adding Titles

You can customize the graph by adding titles and footnotes, changing the page dimensions, and selecting headings. Refer to Adding Titles for instructions on adding titles to the graph.

Add the title Average Square Footage by Style as Title 1 for this graph.

Because the same set of titles and footnotes is used for all SAS/ASSIST tasks, the titles and footnotes most recently used in your SAS/ASSIST session are used unless you change or reset them in the Titles and Footnotes windows.


Running the Graph

After you have finished setting up the graph, run it by following this selection path:

Run
[arrow]
Submit
The graph appears in the Graph window.

Average Square Footage by Style Bar Graph

[IMAGE]


Printing the Graph

For most operating environments, you can print your graph by following this selection path from the Graph window:

File
[arrow]
Print...
However, some operating environments and hardware may require some set-up prior to printing graphics. If you have trouble printing graphics, see the SAS companion for your operating environment or contact the SAS Support Consultant at your site for further instructions.


Exiting This Task

When you have finished viewing or printing your graph, return to the Bar Charts window by using one of the following methods, depending on your operating environment:

To return to the WorkPlace menu or move on to another task, follow the directions in Exiting a Task.


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.