Download presentation
Presentation is loading. Please wait.
Published byJuliana Glenn Modified over 9 years ago
1
Introduction to SAS/Graph Don Miller 812 Oswald Tower miller@pop.psu.edu 814-863-3155
2
Paris datasets Open Windows Explorer (or My Computer) Tools – Map Network Drive Drive P: Folder \\paris\sas_data\\paris\sas_data For help help@pop.psu.eduhelp@pop.psu.edu Stat help stat-core@pop.psu.edustat-core@pop.psu.edu
3
PROC GPLOT
8
PROC GCHART
13
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).
14
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;
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.