Previous Page | Next Page

The PLOT Procedure

Example 4: Producing Multiple Plots per Page


Procedure features:

PROC PLOT statement options

HPERCENT=

VPERCENT=

Data set: DJIA

This example puts three plots on one page of output.


Program

 Note about code
options nodate pageno=1 linesize=120 pagesize=60;
 Note about code
proc plot data=djia vpercent=50 hpercent=50;
 Note about code
   plot high*year='*';
 Note about code
   plot low*year='o';
 Note about code
   plot high*year='*' low*year='o' / overlay box;
 Note about code
   title 'Plots of the Dow Jones Industrial Average';
   title2 'from 1954 to 1994';
run;

Output

                                       Plots of the Dow Jones Industrial Average                                       1
                                                   from 1954 to 1994

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

4000 +                                            *           4000 +
     |                                           *                 |
     |                                                             |                                            o
     |                                          *                  |                                           o
High |                                         *               Low |                                          o
     |                                       **                    |
     |                                     *                       |
     |                                                             |                                        oo
     |                                      *                      |                                       o
2000 +                                    *                   2000 +
     |                                                             |                                     oo
     |                                   *                         |                                    o
     |                                 **                          |
     |                      **  *   ***                            |                                 ooo
     |              ********  ** ***                               |               o oo  ooo  oo o o
     |        ******                                               |         ooo oo o  oo   oo  o o o
     |    ****                                                     |     oooo   o
     |                                                             |    o
   0 +                                                           0 +
     -+---------+---------+---------+---------+---------+-         -+---------+---------+---------+---------+---------+-
    1950      1960      1970      1980      1990      2000        1950      1960      1970      1980      1990      2000

                              Year                                                          Year




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

     -+---------+---------+---------+---------+---------+-
4000 +                                            *      +
     |                                           *       |
     |                                          * o      |
     |                                         *oo       |
High |                                        *          |
     |                                     * *           |
     |                                         o         |
     |                                      *oo          |
2000 +                                    * o            +
     |                                     o             |
     |                                   *o              |
     |                                 **o               |
     |              ****** ************oo                |
     |         *****oooooo*o o oooooooo                  |
     |    *****oooo           o                          |
     |    o                                              |
   0 +                                                   +
     -+---------+---------+---------+---------+---------+-
    1950      1960      1970      1980      1990     2000

                             Year

NOTE: 7 obs hidden.

Previous Page | Next Page | Top of Page