The How-To Book for SAS/GRAPH Software
Table of Contents
About This Book
This book is for you
What's Covered in this Book?
In each chapter
What you should know before using this book
About the author
Part 1 - Up and Running
Chapter 1 - Overview of SAS/GRAPH Software
- How SAS/GRAPH software relates to the SAS System
- Components of SAS/GRAPH software
- What you need to run SAS/GRAPH software
- SAS/GRAPH checklist
- More Information
Chapter 2 - Using Graphics Displays
- What is graphics display?
- Can I use my display with SAS/GRAPH software?
- Checking the display device driver
- Using GRAPH windows and the GWINDOW option
- More Information
Chapter 3 - Using Graphics Hardcopy Devices
- What is a hardcopy device?
- What do graphics device drivers do?
- Testing your hardcopy device
- Hardcopy device checklist
- More information
Chapter 4 - Previewing Hardcopy
- Why preview?
- How to preview
- When ready for final output
- What if you don't know which display device driver to use?
- More Information
Chapter 5 - Choosing an Output Device Driver
- What is a device driver?
- What device drivers are available?
- Getting more information on device drivers
- Naming a device driver in your SAS program
- Overriding driver settings
- More information
Chapter 6 - How to Structure Data for Graphs
- What is data structure?
- Data for bar and pie charts
- Data for maps
- Data for plots
- Restructuring data for graphs
- More Information
Chapter 7 - Using Graphics Options
- What are graphics options?
- Using graphics options
- When to use global versus statement options
- What can graphics options do?
- More Information
Part 2 - Workiong with Bar Charts
Chapter 8 - Charting Counts
- Bar charts show counts by default
- Charting counts with numeric variables
- Making each observation count more than once
- Showing subgroup contributions to the total count
- Comparing data groups side-by-side
- More Information
Chapter 9 - Charting Sums
- Using the TYPE=SUM and SUMVAR=options to chart sums
- Showing subgroup bar segments
- Showing bar groups
- More Information
Chapter 10 - Charting Averages
- Use TYPE=MEAN with the SUMVAR=option to chart averages
- Showing means within groups
- More Information
Chapter 10 - Charting Averages
- Use TYPE=MEAN with the SUMVAR=option to chart averages
- Showing means within groups
- More Information
Chapter 11 - Charting Percentages
- Showing the percentage of a count
- Showing the percentage of a sum
- Showing percentages with grouped bars
- Showing percentage within a data group
- Subgroup percentages with segmented bars
- More information
Chapter 12 - Displaying Statistics
- Horizontal bar charts show statistics by default
- Displaying a summary statistic
- Requesting specific statistics
- Statistic request options
- Turning off all horizontal bar chart statistics
- Displaying statistics on vertical bar charts
- Controlling statistics text appearance
- More information
Chapter 13 - Changing the Order of Bars
- What determines the default bar order?
- Controlling bar order with the MIDPOINTS=option: character variables
- Controlling bar order with the MIDPOINTS=option: numeric variables
- How does the AXIS ORDER=option differ from the MIDPOINTS=option?
- Displaying bars by length
- Controlling the order of bar groups
- More Information
Chapter 14 - Changing Bar Width and Spacing
- Changing bar width
- Changing bar spacing
- Controlling space between bar groups
- More Information
Chapter 15 - Charting with Numeric Variables
- Default handling of numeric variables
- Charting all values of a numeric variaable
- Specifying the number of midpoint levels
- Specifying midpoint values
- More Information
Chapter 16 - Using Value Ranges in Charts
- Creating your own value ranges
- Using ranges with numeric charting variables
- Using ranges with character charting variables
- More Information
Chapter 17 - Controlling Baar Fill Patterns
- What the PATTERN statement does
- Using the default bar patterns
- Overriding the default bar patterns
- Controlling pattern assignments
- Assigning a different pattern to each bar
- Assigning patterns to BY groups
- Assigning patterns to bar groups
- More Information
Part 3 - Working with Plots
Chapter 18 - Creating Scatter Plots
- Creating a plot with the default settings
- Changing the plot symbol
- Changing the plot symbol color
- More Information
Chapter 19 - Creating a Line Plot
- Connecting data points
- Adding data points to a line plot
- How to fix the zigzag line problem
- Changing the plot line type
- Changing the plot line thickness
- More Information
Chapter 20 - Smoothing Plot Lines
- Using line smoothing options
- How to plot a regression line
- Adding confidence limits to regression plots
- More Information
Chapter 21 - Adding a Second Axis
- Adding a second axis with the PLOT2 statement
- How to identify each plot
- Why isn't the SYMBOL2 statement being used?
- More Information
Chapter 22 - Plotting Multiple Sets of Points
- Using a third variable to generate multiple plots in a single set of
- axes
- Controlling the number of plots when using a third variable
- Using multiple plot requests and overlays
- More information
Chapter 23 - Filling an Area under a Line
- Filling under a line
- Filling under multiple lines
- More Information
Chapter 24 - Creating a Cumulative Area Plot
- What is a cumulative area plot?
- Data for the cumulative plot
- Creating the plot
- More Information
Chapter 25 - Using Plot Appearance Options
- Drawing reference lines
- Filling in the plot frame
- Setting the axes origin to zero
- More Information
Part 4 - Working with Maps
Chapter 26 - Understanding Map Data Sets
- What are map data sets?
- How are map data used?
- Projecting map data sets
- More Information
Chapter 27 - Creating a Map
- What types of maps are available?
- Mapping numeric data
- How to specify midpoints
- Specifying the number of midpoints
- Mapping with character variables
- How to create an empty map
- More Information
Chapter 28 - Using Value Ranges in Maps
- Creating your own value ranges for maps
- More Information
Chapter 29 - Handling Empty Areas
- Default handling of empty areas
- Displaying empty areas
- More Information
Chapter 30 - Selecting Map Colors and Fills
- Controlling fill patterns
- Changing color and assigning an empty pattern
- How user-defined and default patterns are selected
- More Information
Part 5 - Working with Pie Charts
Chapter 31 - Creating a Pie Chart
- Using PROC GCHART to create pie charts
- Charting a numeric variaaaaaaable
- Controlling the number of slies with numeric variables
- Selecting your own midpoints
- Showing all slices with a numeric variable
- Making slices represent sums
- More Information
Chapter 32 - Labeling Pie Slices
- Specifying a value to display and its location
- Displaying only percentage values
- Using arrow leaders and the INSIDE location value
- More Information
Chapter 33 - Creating Multiple Pie Charts per Page
- Creating multiple charts with the GROUP=optiion
- Controlling page layout
- More Information
Chapter 34 - Controlling Pie Chart Appearance
- Adding exploded slices
- Outlining slices
- Making a slice invisible
- Matching text and slice color
- Turning off the chart type heading
- Changing the location of the first slice
- Controlling slice order
- More information
Chapter 35 - Selecting Pie Chart Colors and Fills
- Controlling fill patterns
- Varying the fill pattern
- Varying fill color
- Controlling color and fill
- More Information
Chapter 6 - Fine-Tuning Your Graph
Chapter 36 - Controlling Titles and Footnotes
- Controlling tilte font, color, and size
- Addong titles and footnotes
- Changing text orientation
- Canging text within a line
- More Information
Chapter 37 - Adding Dollar Signs and Decimal Places
- Controlling decimal places
- Using formats
- Displaying dollar signs
- More Information
Chapter 38 - Displaying Dates with Plots and Charts
- Placing dates on a plot axis
- Controlling the date format
- Formatted dates in charts
- More Information
Chapter 39 - Controlling Axes on Plots and Charts
- Using the AXIS statement
- Defining axis label text
- How to define plot tick marks
- Controlling tik mark labels and minor tick marks
- Changing bar chart axis labels
- More Information
Chapter 40 - Controlling Legends
- Using the LEGEND statement
- How to define legends for plots
- Setting legend labels
- Controlling the size of point markers
- Defining bar chart legends
- Defining legends on maps
- More Information
Chapter 41 - Creating Multiple Graphs from a Single Data Set
- Using BY groups
- How to create multiple graphs with BY groups
- Suppressing the BY line
- More Information
Chapter 42 - Saving and Reviewing Graphs
- Why save graphs?
- How to save graphs in a SAS catalog
- Replaying cataloged graphs
- Listing cataloged graphs
- More Information
- Data Used in Examples
- LIB1.ALLFUEL
- LIB1.DEER
- LIB1.FUEL
- LIB1.JOBREV
- LIB1.JOBSITES
- LIB1.LAKES
- LIB1.MEETINGS
- LIB1.MONTHLY
- LIB1.REVENUES
- LIB1.SALESREP
- LIB1.TYPEFUEL
- LIB1.UTILITY
- LIB1.UTILYEAR