Chapter Contents

Previous

Next
The PLOT Procedure

Example 3: Overlaying Two Plots


Procedure features:
PLOT statement options
BOX
OVERLAY
Data set: DJIA

This example overlays two plots and puts a box around the plot.


Program

options nodate pageno=1 linesize=64 pagesize=30;

 Note about code
proc plot data=djia;
   plot high*year='*'
        low*year='o' / overlay box;
   title 'Plot of Highs and Lows';
   title2 'for the Dow Jones Industrial Average';
run;




Output
[HTML Output]  [Listing Output]


Chapter Contents

Previous

Next

Top of Page

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