Skip to Main Content
Base SAS 9.4 Procedures Guide, Third Edition
book

Base SAS 9.4 Procedures Guide, Third Edition

by SAS Institute
August 2014
Intermediate to advanced content levelIntermediate to advanced
2218 pages
209h 16m
English
SAS Institute
Content preview from Base SAS 9.4 Procedures Guide, Third Edition
Example 5: Plotting Data on a Logarithmic Scale
Features: PROC PLOT statement option
PLOT statement
PLOT statement options
HAXIS=
VSPACE=
Other features: DATA step
Data set: Equa
Details
This example uses a DATA step to generate the data set Equa. The DATA step creates
the data by using an iterative DO statement. 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
data equa;
do Y=1 to 3 by .1;
X=10**y;
output;
end;
run;
proc plot data=equa hpercent=50;
plot y*x / vspace=1;
plot y*x / haxis=10 100 1000 vspace=1;
title 'Two Plots ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Base SAS 9.4 Procedures Guide, Second Edition

Base SAS 9.4 Procedures Guide, Second Edition

SAS Documentation
Oracle® Database 10g Insider Solutions

Oracle® Database 10g Insider Solutions

Arun Kumar R., John Kanagaraj, Richard Stroupe

Publisher Resources

ISBN: 9781629593043