introduction to sas/graph don miller 812 oswald tower [email protected] 814-863-3155
TRANSCRIPT
Paris datasets
• Open Windows Explorer (or My Computer)
• Tools – Map Network Drive
• Drive P:
• Folder \\paris\sas_data
• For help [email protected]
• Stat help [email protected]
PROC GPLOT
PROC GPLOT
PROC GPLOT
PROC GPLOT
PROC GPLOT
PROC GCHART
PROC GCHART
PROC GCHART
PROC GCHART
PROC GCHART
ODS Statements• Used to create HTML / GIF versions of graphs• Right-click on desktop and create a “Graphs” folder.• Add this to the top of your code (where “miller” is your user name; each of
the quoted values is one line):
ods html body="C:\Documents and Settings\miller\ Desktop\graphs\graphs.html"
gpath="C:\Documents and Settings\miller\ Desktop\graphs\";
• Add this to the bottom of your code:
ods html close;
• You will get a “graphs.html” in your Graphs folder (open with IE).
Other Graphing Concepts• GCHART: After slash (/) in VBAR statement:
DISCRETE forces one bar per value. NOZERO omits bars where the count is 0. SPACE=(#) controls the space between bars. WIDTH=(#) controls the bars’ width.
• PATTERN statements are used to control the color of bars (do a GCHART after these): pattern1 color=red; pattern2 color=orange;
• AXIS statements are used to control the axes: axis1 order=(0 to 20000 by 1000) label=none minor=none; plot finctot*agehofh /vaxis=axis1;