Previous Page | Next Page

Graphics

Producing a Plot

This section shows you how to produce a plot of housing starts over time.

Plot of Housing Starts by Quarter

[Plot of Housing Starts by Quarter]


Instructions

To produce a plot like the one shown in the previous display, follow these instructions:

  1. Follow this selection path:Tasks [arrow] Graphics [arrow] Plots [arrow] Simple X * Y PlotThe Simple X * Y Plot window appears.

    Simple X * Y Plot Window

    [Simple X * Y Plot Window]

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

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

  4. If other task selections exist (for example, a column name is listed for Vertical axis or Horizontal axis), then selectFile [arrow] Newto clear these selections

  5. Select Vertical axis, and then select the STARTS column. For more information, see Selecting a Column.

  6. Select Horizontal axis, and then select the DATE 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 Housing Starts by Quarter 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] SubmitThe graph appears in the Graph window.

Plot of Housing Starts by Quarter

[Plot of Housing Starts by Quarter]

Notice that the dates are listed along the horizontal axis by year and quarter. For more information on SAS dates and date formats, see SAS Language Reference: Concepts.


Printing the Graph

For most operating environments, you can print your graph by following this selection path from the Graph window:File [arrow] PrintHowever, 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 are done viewing or printing your graph, return to the Simple X * Y Plot 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.

Previous Page | Next Page | Top of Page