Chapter Contents

Previous

Next
The PLOT Procedure

Example 2: Controlling the Horizontal Axis and Adding a Reference Line


Procedure features:
PLOT statement options:
HAXIS=
VREF=
Data set: DJIA

This example specifies values for the horizontal axis and draws a reference line from the vertical axis.


Program

options nodate pageno=1 linesize=80 pagesize=35;
 Note about code
proc plot data=djia;
   plot high*year='*' / haxis=1950 to 1995 by 5 vref=3000;
   title 'High Values of Dow Jones Industrial Average';
   title2 'from 1954 to 1994';
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.