Previous Page | Next Page

The PLOT Procedure

Example 1: Specifying a Plotting Symbol


Procedure features:

PLOT statement

plotting symbol in plot request


This example expands on A Simple Plot by specifying a different plotting symbol.


Program

 Note about code
options nodate number pageno=1 linesize=80 pagesize=35;
 Note about code
data djia;
      input Year @7 HighDate date7. High @24 LowDate date7. Low;
      format highdate lowdate date7.;
      datalines;
1954  31DEC54  404.39  11JAN54  279.87
1955  30DEC55  488.40  17JAN55  388.20
...more data lines... 
1993  29DEC93 3794.33  20JAN93 3241.95
1994  31JAN94 3978.36  04APR94 3593.35
;
 Note about code
proc plot data=djia;
   plot high*year='*';
 Note about code
   title 'High Values of the Dow Jones Industrial Average';
   title2 'from 1954 to 1994';
run;

Output

 Note about figure
                High Values of the Dow Jones Industrial Average                1
                               from 1954 to 1994

                    Plot of High*Year.  Symbol used is '*'.

         High |
              |
         4000 +                                              *
              |                                             *
              |
              |                                            *
              |                                           *
         3000 +                                          *
              |                                       * *
              |
              |
              |                                        *
         2000 +                                      *
              |
              |                                     *
              |
              |                                   **
         1000 +                 ***** ***  *** ***
              |             ****     *   **   *
              |        *****
              |      **
              |
            0 +
              |
              ---+---------+---------+---------+---------+---------+--
               1950      1960      1970      1980      1990      2000

                                        Year

Previous Page | Next Page | Top of Page