Chapter Contents

Previous

Next
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

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='*';
   title 'High Values of the Dow Jones Industrial Average';
   title2 'from 1954 to 1994';
run;


Output
PROC PLOT determines the tick marks and the scale of both axes. [HTML Output]
 [Listing Output]


Chapter Contents

Previous

Next

Top of Page

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