Example: Series Plot of Stock Trends

In this example, you want to create a series plot that shows stock trends.
To create this example:
  1. In the Tasks section, expand the Graph folder, and then double-click Series Plot. The user interface for the Series Plot task opens.
  2. On the Data tab, select the SASHELP.STOCKS data set.
    Tip
    If the data set is not available from the drop-down list, click Select a table icon. In the Choose a Table window, expand the library that contains the data set that you want to use. Select the data set for the example and click OK. The selected data set should now appear in the drop-down list.
  3. Assign columns to these roles:
    Role
    Column Name
    X variable
    Date
    Y variable
    Open
    Group variable
    Stock
  4. To run the task, click Submit SAS Code.
The resulting series plot shows the stock values for three companies.
Stock Trends for Each Company