Chapter Contents

Previous

Next
The PLOT Procedure

Example 5: Plotting Data on a Logarithmic Scale


Procedure features:
PLOT statement option
HAXIS=

This example uses a DATA step to generate data. The PROC PLOT step shows two plots of the same data -- one plot without a horizontal axis specification and one plot with a logarithmic scale specified for the horizontal axis.


Program

options nodate pageno=1 linesize=80 pagesize=40;
 Note about code
data equa;
   do Y=1 to 3 by .1;
      X=10**y;
      output;
   end;
run;
 Note about code
proc plot data=equa hpercent=50;

 Note about code
    plot y*x;
    plot y*x / haxis=10 100 1000;
    title 'Two Plots with Different';
    title2 'Horizontal Axis Specifications';
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.