Contents
About
Title Page
What's New in SAS/GRAPH 9.3
Accessibility Features in SAS/GRAPH
About This Book
SAS/GRAPH Concepts
Introduction to SAS/GRAPH
Overview
Components of SAS/GRAPH Software
SAS/GRAPH Output versus ODS Graphics
Producing Charts
Producing Two-Dimensional Plots
Producing Three-Dimensional Plots
Producing Maps
Creating Text Slide and Presentation Graphics
Enhancing Graphics Output
Creating Custom Graphics
About the Sample Library
Elements of a SAS/GRAPH Program
Overview
A Typical SAS/GRAPH Program
SAS/GRAPH PROC Step
Global Statements
Annotate DATA Set
DSGI Functions and Routines in a DATA Step
ODS Statements
Base SAS Language Elements
Other Resources
Overview of Devices, ODS Destinations, and ODS Styles
Introduction to Devices, ODS Destinations, and ODS Styles
Working with ODS Destinations and Styles
Generating Output with SAS/GRAPH Procedures
Controlling the Graphics Output Format with the DEVICE= Option
Summary of Default Destinations, Styles, and Devices
Sending Output to Multiple Open Destinations
Related Topics
SAS/GRAPH Processing
Running SAS/GRAPH Programs
SAS Data Sets
Specifying an Input Data Set
Using Engines with SAS/GRAPH Software
RUN-Group Processing
The Graphics Output Environment
Overview
The Graphics Output and Device Display Areas
Controlling Dimensions
Controlling Display Area Size and Image Resolution
Units
Maintaining the Quality of Your Image across Devices
How Graphics Elements Are Placed in the Graphics Output Area
How Errors in Sizing Are Handled
Using Graphics Devices
Overview: Using Graphics Devices
What Is a SAS/GRAPH Device?
Commonly Used Devices
Default Devices for ODS Destinations
Viewing the List of All Available Devices
Displaying Information with the QDEVICE Procedure
Deciding Which Device to Use
Overriding the Default Device
Device Categories and Modifying Default Output Attributes
Using Universal Printer Shortcut Devices
Viewing and Modifying Device Entries
Creating a Custom Device
Compatibility Device Drivers (Z Drivers)
Additional Considerations for Devices
Related Topics
Using Scalable Vector Graphics
Introduction to Scalable Vector Graphics
Advantages of SVG Graphics
Universal Printers versus SAS/GRAPH Devices
The SVG Devices and the Output That They Create
Example: Creating an SVG File
Example: Placing Images behind SVG Files
Example: Generating a Single SVG File with Multiple Pages and Page Controls
Animating Output with the SVGANIM Printer
Implementing Data Tips and Drill-Down Links with the SVG Devices
Web Server Content Type for SVG Files
Browsers That Support SVG Files
Controlling Graph Resolution with The SVG Devices
Controlling Graph Size with the SVG Devices
SAS System Options and SVG Output
Managing Your Graphics With ODS
Introduction
Managing ODS Destinations
Specifying a Destination
ODS Destination Statement Options
ODS and Procedures That Support RUN-Group Processing
Controlling Titles and Footnotes
SAS/GRAPH Output
Overview of SAS/GRAPH Output
Specifying the Graphics Output File Type for Your Graph
The SAS/GRAPH Output Process
Setting the Size of Your Graph
Setting the Resolution of Your Graph
Controlling Where Your Output Is Stored
Replacing an Existing Graphics Output File Using the GSFMODE= Graphics Option
Storing Multiple Graphs in a Single Graphics Output File
Replaying Your SAS/GRAPH Output
Previewing Output
Printing Your Graph
Exporting Your Output
Exporting Your Graphs to Microsoft Office Products
What to Consider When Choosing an Output Format
Comparison of the Graphics Output
Enhancing Your Graphs
Importing Your Graphs into Microsoft Office
Writing Your Graphs to a PDF File
Overview of Writing Graphs to a PDF File
Specifying Fonts
Creating an Archivable PDF File
Changing the Page Layout
Adding Metadata to Your PDF File
Adding Bookmarks for Your Graphs
Adding Drill-Down Graphs in Your PDF File
Changing the Default Compression Level for Your PDF File
Examples: Writing Graphs to a PDF File
Controlling the Appearance of Your Output
Using ODS Styles, Device Parameters, and Options
Overview
Style Attributes Versus Device Entry Parameters
About Style Templates
Specifying a Style
Overriding Style Attributes with SAS/GRAPH Statement Options
Precedence of Appearance Option Specifications
Additional Considerations with ODS Styles
Viewing the List of Styles Provided by SAS
Modifying a Style
Graphical Style Element Reference for Device-Based Graphics
Turning Off Styles
Changing the Appearance of Output to Match That of Earlier SAS Releases
Related Topics
Specifying Fonts in SAS/GRAPH Programs
Introduction: Specifying Fonts in SAS/GRAPH Programs
SAS/GRAPH, System, and Device-Resident Fonts
TrueType Fonts That Are Supplied by SAS
Determining What Fonts Are Available
Default Fonts
Viewing Font Specifications in the SAS Registry
Specifying a Font
Methods for Specifying Fonts
Using Colors in SAS/GRAPH Programs
Colors, Styles, and Device Parameters
Specifying Colors in SAS/GRAPH Programs
Using Transparency
Color-Naming Schemes
Using the Color Utility Macros
Processing Limitations for Colors
Adding Images To SAS/GRAPH Output
Introduction
Image File Types Supported by SAS/GRAPH
Displaying an Image in a Graph Background
Displaying an Image in Graph Frame
Displaying Images on Data Elements
Displaying Images Using Annotate
Displaying Images Using DSGI
Displaying Pop-Up Images Using the SVG Graphics Devices
Disabling and Enabling Image Output
Statements And Options Used by SAS/GRAPH
SAS/GRAPH Statements
Overview of Global Statements
Specifying Units of Measurement
AXIS Statement
BY Statement
FOOTNOTE Statement
GOPTIONS Statement
LEGEND Statement
NOTE Statement
ODS HTML Statement
PATTERN Statement
SYMBOL Statement
TITLE, FOOTNOTE, and NOTE Statements
Examples
Example 1: Ordering Axis Tick Marks with SAS Date Values
Example 2: Specifying Logarithmic Axes
Example 3: Rotating Plot Symbols through the Color List
Example 4: Creating and Modifying Box Plots
Example 5: Filling the Area between Plot Lines
Example 6: Enhancing Titles
Example 7: Using BY-group Processing to Generate a Series of Charts
Example 8: Creating a Simple Web Page with the ODS HTML Statement
Example 9: Combining Graphs and Reports in a Web Page
Example 10: Creating a Web Page with Drill-Down Functionality Using the ODS HTML Statement
Graphics Options and Device Parameters Dictionary
Introduction to Graphics Options and Device Parameters
Specifying Graphics Options and Device Parameters
Options Used in Both GOPTIONS and OPTIONS Statements
ACCESSIBLE
ADMGDF
ALTDESC
ASPECT
AUTOCOPY
AUTOFEED
AUTOSIZE
BINDING
BORDER
CBACK
CBY
CELL
CHARACTERS
CHARREC
CHARTYPE
CIRCLEARC
CMAP
COLLATE
COLORS
COLORTBL
COLORTYPE
COLS
CPATTERN
CSYMBOL
CTEXT
CTITLE
DASH
DASHLINE
DASHSCALE
DELAY
DESCRIPTION
DEVADDR
DEVICE
DEVMAP
DEVOPTS
DEVTYPE
DISPLAY
DISPOSAL
DRVINIT
DRVQRY
DRVTERM
DUPLEX
ERASE
EXTENSION
FASTTEXT
FBY
FCACHE
FILECLOSE
FILEONLY
FILL
FILLINC
FONT NAME
FONTRES
FORMAT
FTEXT
FTITLE
FTRACK
GACCESS
GCLASS
GCOPIES
GDDMCOPY
GDDMNICKNAME
GDDMTOKEN
GDEST
GEND
GEPILOG
GFORMS
GOUTMODE
GPROLOG
GPROTOCOL
GRAPHRC
GSFLEN
GSFMODE
GSFNAME
GSFPROMPT
GSIZE
GSTART
GUNIT
GWAIT
GWRITER
HANDSHAKE
HBY
HEADER
HEADERFILE
HORIGIN
HOSTSPEC
HPOS
HSIZE
HTEXT
HTITLE
IBACK
ID
IMAGEPRINT
IMAGESTYLE
INTERACTIVE
INTERLACED
INTERPOL
ITERATION
KEYMAP
LCOLS
LFACTOR
LROWS
MAXCOLORS
MAXPOLY
MODEL
MODULE
NAK
OFFSHADOW
PAPERDEST
PAPERFEED
PAPERLIMIT
PAPERSIZE
PAPERSOURCE
PAPERTYPE
PATH
PCLIP
PCOLS
PENMOUNTS
PENSORT
PIEFILL
POLYGONCLIP
POLYGONFILL
POSTGEPILOG
POSTGPROLOG
POSTGRAPH
PPDFILE
PREGEPILOG
PREGPROLOG
PREGRAPH
PROCESS
PROCESSINPUT
PROCESSOUTPUT
PROMPT
PROMPTCHARS
PROWS
QMSG
RECTFILL
RENDER
RENDERLIB
REPAINT
RESET
REVERSE
ROTATE
ROTATION
ROWS
SCALABLE
SIMFONT
SPEED
SWAP
SWFONTRENDER
SYMBOL
SYMBOLS
TARGETDEVICE
TRAILER
TRAILERFILE
TRANSPARENCY
TRANTAB
TYPE
UCC
USERINPUT
VORIGIN
VPOS
VSIZE
V6COMP
XMAX
XPIXELS
YMAX
YPIXELS
SAS System Options Used by SAS/GRAPH
Introduction to System Options
DEVICE= System Option
GSTYLE System Option
GWINDOW System Option
MAPS= System Option
MAPSGFK= System Option
MAPSSAS= System Option
Bringing SAS/GRAPH Output to the Web
Introducing SAS/GRAPH Output for the Web
Which Device Driver or Macro Do I Use?
Types of Web Presentations Available
Selecting a Type of Web Presentation
Generating Web Presentations
Creating Interactive Output for ActiveX
Overview of Creating Interactive Output for ActiveX
When to Use the ACTIVEX Device
Installing the SAS/GRAPH ActiveX Control
Generating Output for ActiveX
About Languages in ACTIVEX
About Special Fonts and Symbols in ACTIVEX
SAS Formats Supported by ACTIVEX
Configuring Drill-Down Links with ACTIVEX
Examples: Creating Interactive ActiveX Output
Creating Interactive Output for Java
Overview of Creating Interactive Output for Java
When to Use the JAVA Device
Generating Output for Java
Configuring Drill-Down Links for Java
Examples: Creating Interactive Java Output
Attributes and Parameters for Java and ActiveX
Specifying Parameters and Attributes for Java and ActiveX
Parameter Reference for Java and ActiveX
Generating Static Graphics
What is a Static Graphic?
Creating a Static Graphic
ACTXIMG and JAVAIMG Devices Compared to GIF, JPEG, SVG, and PNG Devices
Developing Web Presentations with the GIF, JPEG, SVG, and PNG Devices
Developing Web Presentations with the JAVAIMG and ACTXIMG Devices
Adding Drill-Down Links to Web Presentations Generated with a Static-Graphic Device
Examples: Generating Static Graphics
Generating Web Animation with GIFANIM
Developing Web Presentations with the GIFANIM Device
When to Use the GIFANIM Device
Creating an Animated Sequence
GOPTIONS for Controlling GIFANIM Presentations
Examples: Generating Animated GIF Images
Generating Interactive Metagraphics Output
Developing Web Presentations for the Metaview Applet
Advantages of Using the JAVAMETA Device
Using ODS with the JAVAMETA Device
Enhancing Web Presentations for the Metaview Applet
Specifying Non-English Resource Files and Fonts
Metaview Applet Parameters
Example: Generating Metacode Output with the JAVAMETA Driver
Generating Web Output with the Annotate Facility
Overview of Generating Web Output with the Annotate Facility
Generating Web Output with the Annotate Facility
Examples
Creating Interactive Treeview Diagrams
Creating Treeview Diagrams
Enhancing Presentations for the Treeview Applet
DS2TREE Macro Arguments
Examples: Creating Interactive Treeview Diagrams
Creating Interactive Constellation Diagrams
Creating Constellation Diagrams
Enhancing Presentations for the Constellation Applet
DS2CONST Macro Arguments
Examples: Creating Interactive Constellation Diagrams
Macro Arguments for the DS2CONST and DS2TREE Macros
Overview of the DS2CONST and DS2TREE Macro Arguments
Arguments for the APPLET Tag
Arguments for Data Definition
Arguments for Generating HTML and XML Files
Arguments for Diagram Appearance
Arguments for Page Formatting
Arguments for Style Sheets
Arguments for the SAS TITLE and FOOTNOTE Tags
Arguments for Character Transcoding
Reserved Names
Enhancing Web Presentations with Chart Descriptions, Data Tips, and Drill-Down Functionality
Overview of Enhancing Web Presentations
Chart Descriptions for Web Presentations
Data Tips for Web Presentations
Adding Links and Enhancements with the URL=, HTML=, and HTML_LEGEND= Options
Enhancing Drill-Down Behavior in SVG Presentations Using HTML Attributes
Controlling Drill-Down Behavior for ActiveX and Java Using Parameters
Examples
Troubleshooting Web Output
Troubleshooting Web Output
Checking Browser Permissions
Using HTML Character Entities
Connecting to Web Servers That Require Authentication
Removing CLASSPATH Environment Variables
Setting the SAS_ALT_DISPLAY Variable for X Window Systems on UNIX
Correcting Text Fonts
Resolving Differences between Graphs Generated with Different Technologies
The Annotate Facility
Using Annotate Data Sets
Overview: The Annotate Facility
The Annotate Function, Variable, and Macro Dictionaries
About the Annotate Data Set
About Annotate Graphics
Creating an Annotate Data Set
Producing Graphics Output from Annotate Data Sets
Annotate Processing Details
List of Annotate Examples
Annotate Error Messages
Examples
Annotate Function Dictionary
About the Annotate Functions
ARROW Function
BAR Function
CNTL2TXT Function
COMMENT Function
DEBUG Function
DRAW Function
DRAW2TXT Function
FRAME Function
IMAGE Function
LABEL Function
MOVE Function
PIE Function
PIECNTR Function
PIEXY Function
POINT Function
POLY Function
POLYCONT Function
POP Function
PUSH Function
SWAP Function
SYMBOL Function
TXT2CNTL Function
Annotate Variable Dictionary
About the Annotate Variables
Annotate Internal Coordinates
ANGLE Variable
CBORDER Variable
CBOX Variable
COLOR Variable
FUNCTION Variable
GROUP Variable
HSYS Variable
HTML Variable
IMGPATH Variable
LINE Variable
MIDPOINT Variable
POSITION Variable
ROTATE Variable
SIZE Variable
STYLE Variable (Fonts)
STYLE Variable (Images)
STYLE Variable (Arrows)
STYLE Variable (Patterns)
SUBGROUP Variable
TEXT Variable
WHEN Variable
WIDTH Variable
X Variable
XC Variable
XSYS Variable
Y Variable
YC Variable
YSYS Variable
Z Variable
ZSYS Variable
XLAST, YLAST Variables
XLSTT, YLSTT Variables
Annotate Macro Dictionary
About the Annotate Macros
Using Annotate Macros
%ANNOMAC Macro
%ARROW Macro
%BAR, %BAR2 Macros
%CENTROID Macro
%CIRCLE Macro
%CNTL2TXT Macro
%COMMENT Macro
%DCLANNO Macro
%DRAW Macro
%DRAW2TXT Macro
%FRAME Macro
%LABEL Macro
%LINE Macro
%MAPLABEL Macro
%MOVE Macro
%PIEXY Macro
%POLY, %POLY2 Macro
%POLYCONT Macro
%POP Macro
%PUSH Macro
%RECT Macro
%SCALE Macro
%SCALET Macro
%SEQUENCE Macro
%SLICE Macro
%SWAP Macro
%SYSTEM Macro
%TXT2CNTL Macro
The DATA Step Graphics Interface
The DATA Step Graphics Interface
Overview of the DATA Step Graphics Interface
The DSGI Function and Routine Dictionaries
Applications of the DATA Step Graphics Interface
Using the DATA Step Graphics Interface
DSGI Graphics Summary
Return Codes for DSGI Routines and Functions
References
DSGI Utility Function Dictionary
About the DSGI Utility Functions
GINIT
GPRINT
GTERM
DSGI GASK Routine Dictionary
About the DSGI GASK Routines
ASF
ASPECT
CATALOG
CBACK
CLIP
COLINDEX
COLREP
DEVICE
FILCOLOR
FILINDEX
FILREP
FILSTYLE
FILTYPE
GRAPHLIST
HPOS
HSIZE
HTML
LINCOLOR
LININDEX
LINREP
LINTYPE
LINWIDTH
MARCOLOR
MARINDEX
MARREP
MARSIZE
MARTYPE
MAXDISP
NUMGRAPH
OPENGRAPH
PATREP
STATE
TEXALIGN
TEXCOLOR
TEXEXTENT
TEXFONT
TEXHEIGHT
TEXINDEX
TEXPATH
TEXREP
TEXUP
TRANS
TRANSNO
VIEWPORT
VPOS
VSIZE
WINDOW
WSACTIVE
WSOPEN
DSGI GDRAW Function Dictionary
About the DSGI GDRAW Functions
ARC
BAR
ELLARC
ELLIPSE
FILL
IMAGE
LINE
MARK
MESSAGE
PIE
TEXT
DSGI GRAPH Function Dictionary
About the DSGI GRAPH Functions
CLEAR
COPY
DELETE
INSERT
PLAY
RENAME
UPDATE
DSGI GSET Function Dictionary
About the DSGI GSET Functions
ASF
ASPECT
CATALOG
CBACK
CLIP
COLREP
DEVICE
FILCOLOR
FILINDEX
FILREP
FILSTYLE
FILTYPE
HPOS
HSIZE
HTML
LINCOLOR
LININDEX
LINREP
LINTYPE
LINWIDTH
MARCOLOR
MARINDEX
MARREP
MARSIZE
MARTYPE
MESSAGE
PATREP
TEXALIGN
TEXCOLOR
TEXFONT
TEXHEIGHT
TEXINDEX
TEXPATH
TEXREP
TEXUP
TRANSNO
VIEWPORT
VPOS
VSIZE
WINDOW
SAS/GRAPH Procedures
GANNO Procedure
Syntax: GANNO Procedure
PROC GANNO
Overview: GANNO Procedure
Examples: GANNO Procedure
Example 1: Scaling Data-Dependent Output
Example 2: Storing Annotate Graphics
Example 3: Using the NAME= Option to Produce Multiple Graphs
GAREABAR Procedure
Syntax: GAREABAR Procedure
PROC GAREABAR
HBAR, HBAR3D, VBAR, and VBAR3D
Overview: GAREABAR Procedure
Concepts: GAREABAR Procedure
Examples: GAREABAR Procedure
Example 1: Generating an Area Bar Chart
Example 2: Generating an Area Bar Chart with a Numeric Chart Variable
Example 3: Generating an Area Bar Chart with Subgroups
Example 4: Area Bar Chart with Subgroups; Using the RSTAT= option and the WSTAT= option to Calculate Statistics as Percentages
GBARLINE Procedure
Syntax: GBARLINE Procedure
PROC GBARLINE
BAR
PLOT
Overview: GBARLINE Procedure
About Bar-Line Charts
About the Chart Variable
About Midpoints
About Response Variables
About Chart Statistics
Missing Values
Plot Variable Values Out of Range
Controlling Patterns, Outlines, Colors, and Images
Examples: GBARLINE Procedure
Example 1: Producing a Basic Bar-Line Chart
Example 2: Calculating Weighted Statistics
Example 3: Specifying Subgroups, Multiple Plots, Data Tips, and Drill-Down URLs
GCHART Procedure
Syntax: GCHART Procedure
PROC GCHART
BLOCK
HBAR, HBAR3D, VBAR, and VBAR3D
PIE, PIE3D, and DONUT
STAR
Overview: GCHART Procedure
Chart Terminology
Understanding Chart Variables
Understanding Midpoints
About Chart Statistics
About Patterns
Examples: GCHART Procedure
Example 1: Specifying the Sum Statistic in a Block Chart
Example 2: Grouping and Subgrouping a Block Chart
Example 3: Specifying the Sum Statistic in Bar Charts
Example 4: Subgrouping a Three-Dimensional Vertical Bar Chart
Example 5: Controlling Midpoints and Statistics in a Horizontal Bar Chart
Example 6: Generating Error Bars in a Horizontal Bar Chart
Example 7: Specifying the Sum Statistic for a Pie Chart
Example 8: Subgrouping a Donut or Pie Chart
Example 9: Ordering and Labeling Slices in a Pie Chart
Example 10: Grouping and Arranging Pie Charts
Example 11: Specifying the Sum Statistic in a Star Chart
Example 12: Charting a Discrete Numeric Variable in a Star Chart
Example 13: Creating a Detail Pie Chart
References
GCONTOUR Procedure
Syntax: GCONTOUR Procedure
PROC GCONTOUR
PLOT
Overview: GCONTOUR Procedure
CONTOUR Plot Terms
Input Data
Data Ranges
Missing Values
Interpolating Data
Examples: GCONTOUR Procedure
Example 1: Simple Contour Plot
Example 2: Labeling Contour Lines, Modifying the Horizontal Axis, Modifying the Legend
Example 3: Specifying Contour Levels
Example 4: Using Patterns and Joins
References
GDEVICE Procedure
Syntax: GDEVICE Procedure
PROC GDEVICE
ADD
COPY
DELETE
FS
LIST
MODIFY
QUIT
RENAME
Overview: GDEVICE Procedure
Device Catalogs
Ways to Use the GDEVICE Procedure
Using the GDEVICE Windows
Creating or Modifying Device Entries
Example: Creating a Custom Device Entry with Program Statements
GEOCODE Procedure
Syntax: GEOCODE Procedure
PROC GEOCODE
Overview: GEOCODE Procedure
Understanding Output Data
Understanding Street Geocoding
Understanding City Geocoding
Understanding ZIP Code Geocoding
Understanding ZIP+4 Geocoding
Understanding Range Geocoding
Understanding Custom Geocoding
Optimizing Performance
Examples: GEOCODE Procedure
Example 1: Geocoding Using Default Values
Example 2: Street Geocoding
Example 3: U.S. City Geocoding
Example 4: World City Geocoding
Example 5: ZIP+4 Geocoding
Example 6: British Postcode Geocoding
Example 7: Australian Postcode Geocoding
GFONT Procedure
Syntax: GFONT Procedure
PROC GFONT
Overview: GFONT Procedure
Font Terminology and Characteristics
Storing or Displaying User-Created Fonts: GFONT0 Libref
Specifying Units for Creating Fonts
Font Data Sets and the GFONT Procedure
The Font Data Set
The Kern Data Set
The Space Data Set
Examples: GFONT Procedure
Example 1: Displaying Fonts with Character Codes
Example 2: Creating Figures for a Symbol Font
GINSIDE Procedure
Syntax: GINSIDE Procedure
PROC GINSIDE
ID
Overview: GINSIDE Procedure
Examples: GINSIDE Procedure
Example 1: Determining Values by Using the GINSIDE Procedure
Example 2: Mapping and Annotating Values from the GINSIDE Procedure
GKPI Procedure
Syntax: GKPI Procedure
PROC GKPI
DIAL, HBULLET, HSLIDER, HTRAFFICLIGHT, SPEEDOMETER, VTRAFFICLIGHT, VBULLET, and VSLIDER
Overview: GKPI Procedure
Specifying Qualitative Range Boundaries and Actual KPI Values
Controlling the Display of Boundary and Tick Mark Values
Controlling Qualitative Range Colors
Examples: GKPI Procedure
Example 1: Using the Default Colors as the Active Colors
Example 2: Creating a Gray Scale Bullet Graph
Example 3: Creating a Dial KPI Chart
Example 4: Defining a Speedometer
Example 5: Defining a Speedometer with Reversed Colors
Example 6: Creating a Traffic Light
GMAP Procedure
Syntax: GMAP Procedure
PROC GMAP
ID
AREA
BLOCK
CHORO
PRISM
SURFACE
Overview: GMAP Procedure
About Map Data Sets
About GfK GeoMarketing Map Data Sets
About Traditional Map Data Sets
Map Data Sets Containing X, Y, LONG, and LAT
Differences between GfK and Traditional Map Data Sets
The METAMAPS Data Set
Special GfK Data Sets for Annotating Maps
Special Traditional Data Sets for Annotating Maps
About Response Data Sets
About Identification Variables
Displaying Map Areas and Response Data
Summary of Use
Accessing SAS Maps Online
Importing Maps from Esri Shapefiles
Using FIPS Codes and Province Codes
Using Formats for Traditional Map Data Set Variables
Using SAS/GRAPH Map Data Sets
Creating SAS Map Data Sets
Using GfK Map Data Sets with Existing Code
Usage Tips with GfK Map Data Sets
Examples: GMAP Procedure
Example 1: Using GfK GeoMarketing Map Data to Produce a Simple Block Map
Example 2: Using Traditional Map Data to Produce a Simple Block Map
Example 3: Using GfK GeoMarketing Map Data to Specify Response Levels in a Block Map
Example 4: Using Traditional Map Data to Specify Response Levels in a Block Map
Example 5: Using GfK GeoMarketing Map Data to Assign a Format to the Response Variable
Example 6: Using Traditional Map Data to Assign a Format to the Response Variable
Example 7: Using GfK GeoMarketing Map Data When Specifying the Statistic for the Response Variable
Example 8: Using Traditional Map Data When Specifying the Statistic for the Response Variable
Example 9: Using GfK GeoMarketing Map Data to Produce a Simple Choropleth Map
Example 10: Using Traditional Map Data to Produce a Simple Choropleth Map
Example 11: Using GfK GeoMarketing Map Data When Labelling Provinces on a Map
Example 12: Using Traditional Map Data When Labelling Provinces on a Map
Example 13: Using GfK GeoMarketing Map Data to Produce a Simple Prism Map
Example 14: Using Traditional Map Data to Produce a Simple Prism Map
Example 15: Using GfK GeoMarketing Map Data When Specifying Midpoints in a Prism Map
Example 16: Using Traditional Map Data When Specifying Midpoints in a Prism Map
Example 17: Using GfK GeoMarketing Map Data to Produce a Simple Surface Map
Example 18: Using Traditional Map Data to Produce a Simple Surface Map
Example 19: Using GfK GeoMarketing Map Data While Rotating and Tilting a Surface Map
Example 20: Using Traditional Map Data While Rotating and Tilting a Surface Map
Example 21: Mapping an Individual Country By Subsetting MAPS.WORLD
Example 22: Using GfK GeoMarketing Map Data to Specify Country Subdivisions on a Continent
Example 23: Using GfK GeoMarketing Map Data to Produce a Choropleth Map Combining Three Map Data Sets
Example 24: Using GfK GeoMarketing Map Data to Produce a Choropleth Map Annotating Cities
GOPTIONS Procedure
Syntax: GOPTIONS Procedure
PROC GOPTIONS
Overview: GOPTIONS Procedure
Examples: GOPTIONS Procedure
Example 1: Displaying TITLE and FOOTNOTE Statements
Example 2: Displaying Graphics Options without the Description
GPLOT Procedure
Syntax: GPLOT Procedure
PROC GPLOT
BUBBLE
BUBBLE2
PLOT
PLOT2
Overview: GPLOT Procedure
Parts of a Plot
About the Input Data Set
Examples: GPLOT Procedure
Example 1: Generating a Simple Bubble Plot
Example 2: Labeling and Sizing Plot Bubbles
Example 3: Adding a Right Vertical Axis
Example 4: Plotting Two Variables
Example 5: Connecting Plot Data Points
Example 6: Generating an Overlay Plot
Example 7: Filling Areas in an Overlay Plot
Example 8: Plotting Three Variables
Example 9: Plotting with Different Scales of Values
Example 10: Creating Plots with Drill-down Functionality for the Web
GPROJECT Procedure
Syntax: GPROJECT Procedure
PROC GPROJECT
ID
Overview: GPROJECT Procedure
About the Input Map Data Set
About Coordinate Values
About Types of Map Projections
About Projection Parameters Data Sets
Using the GPROJECT Procedure
Examples: GPROJECT Procedure
Example 1: Using Default Projection Specifications
Example 2: Emphasizing Map Areas
Example 3: Clipping an Area from the Map
Example 4: Projecting an Annotate Data Set
References
GRADAR Procedure
Syntax: GRADAR Procedure
PROC GRADAR
CHART
Overview: GRADAR Procedure
Calculating Weighted Statistics
Examples: GRADAR Procedure
Example 1: Producing a Basic Radar Chart
Example 2: Overlaying Radar Charts
Example 3: Tiling Radar Charts
Example 4: Using Multiple Classification Variables in Radar Charts
Example 5: Modifying the Appearance of Radar Charts
Example 6: Modifying Chart Axes
Example 7: Creating a Windrose Chart
Example 8: Creating a Calendar Chart
GREDUCE Procedure
Syntax: GREDUCE Procedure
PROC GREDUCE
ID
Overview: GREDUCE Procedure
About the Input Map Data Set
About Unmatched Area Boundaries
Using the GREDUCE Procedure
Example: Reducing the Map of Canada
References
GREMOVE Procedure
Syntax: GREMOVE Procedure
PROC GREMOVE
BY
ID
Overview: GREMOVE Procedure
About the GREMOVE Procedure
About the Input Map Data Set
About the Output Map Data Set
About Unmatched Area Boundaries
Examples: GREMOVE Procedure
Example 1: Removing State Boundaries from U.S. Map
Example 2: Creating an Outline Map of Africa
GREPLAY Procedure
Syntax: GREPLAY Procedure
PROC GREPLAY
?
BYLINE
CC
CCOPY
CDEF
CDELETE
CMAP
COPY
DELETE
DEVICE
FS
GOUT
GROUP
IGOUT
LIST
MODIFY
MOVE
NOBYLINE
PREVIEW
QUIT
REPLAY
TC
TCOPY
TDEF
TDELETE
TEMPLATE
TREPLAY
Overview: GREPLAY Procedure
Catalog Entries
Displaying the List of Templates Provided by SAS/GRAPH
Duplicate Entry Names
Ways to Use the GREPLAY Procedure
Sizing and Naming Your Graphs for Replay (Best Practice)
Considerations for Replaying a Graph
Using the GREPLAY Procedure Windows
Using Code-based Statements to Run the GREPLAY Procedure
Using the GREPLAY Procedure to Replay Catalog Entries
Using the GREPLAY Procedure to Create Custom Templates
Using the GREPLAY Procedure to Replay Graphics Output in a Template
Using the GREPLAY Procedure to Create Color Maps
Examples: GREPLAY Procedure
Example 1: Creating a Template
Example 2: Replaying GSLIDE Procedure Output in a Template
Example 3: Replaying Graphs into a Template
Example 4: Replaying a Graph to Multiple Destinations
Example 5: Creating a Color Map
GSLIDE Procedure
Syntax: GSLIDE Procedure
PROC GSLIDE
Overview: GSLIDE Procedure
Examples: GSLIDE Procedure
Example 1: Producing Text Slides
Example 2: Displaying Annotate Graphics
GTILE Procedure
Syntax: GTILE Procedure
PROC GTILE
FLOW, TILE, and TOGGLE
Overview: GTILE Procedure
Chart Variables
Missing Values, Negative Values, and Zero Values
Assigning Colors
Specifying a Custom Range for the Color Ramp
Examples: GTILE Procedure
Example 1: Simple GTILE with the COLORVAR= Option
Example 2: Specifying the COLORRAMP= Option, and Setting the DETAILLEVEL= Option
Example 3: Specifying the COLORPOINTS= Option and a Custom Color Ramp Range
Example 4: Specifying Discrete Tile Colors
G3D Procedure
Syntax: G3D Procedure
PROC G3D
PLOT
SCATTER
Overview: G3D Procedure
G3D Procedure Terms
The Input Data Set
Rotating and Tilting the Plot
Controlling the Axes
Examples: G3D Procedure
Example 1: Generating A Surface Plot
Example 2: Generating a Rotated Surface Plot
Example 3: Generating a Tilted Surface Plot
Example 4: Generating a Scatter Plot
Example 5: Generating a Scatter Plot with Modified Shapes
Example 6: Generating a Scatter Plot with Modified Shapes and a Grid
Example 7: Generating a Rotated Scatter Plot with Modified Axes
References
G3GRID Procedure
Syntax: G3GRID Procedure
PROC G3GRID
GRID
Overview: G3GRID Procedure
The Input Data Set
Multiple Vertical Variables
Horizontal Variables along a Nonlinear Curve
The Output Data Set
Interpolation Methods
Examples: G3GRID Procedure
Example 1: Using the Default Interpolation Method
Example 2: Spline and Smoothing Interpolations
Example 3: Partial Spline Interpolation
Example 4: Spline Interpolation
References
MAPIMPORT Procedure
Syntax: MAPIMPORT Procedure
PROC MAPIMPORT
EXCLUDE
ID
RENAME
SELECT
Overview: MAPIMPORT Procedure
Examples: MAPIMPORT Procedure
Example 1: Including All Variables from the SHP Shapefile
Example 2: Including Selected Variables from the SHP Shapefile
Example 3: Excluding a Variable from the SHP Shapefile
Example 4: Using the ID Statement
Example 5: Including Selected Variables from the DBF Shapefile
Appendixes
Summary of ActiveX and Java Support
Introduction
Global Statements
PROC GAREABAR
PROC GBARLINE
PROC GCHART
PROC GCONTOUR
PROC GMAP
PROC GPLOT
PROC GRADAR
PROC GTILE
PROC G3D
Annotate Functions
Using SAS/GRAPH Fonts
Introduction
Rendering Bitstream Fonts
Listing or Displaying SAS/GRAPH Fonts on Your System
SAS/GRAPH Font Lists
The SIMULATE Font
Font Locations and the Default Search Path
Using Device-Resident Fonts
Introduction
Default Device-Resident Fonts
Specifying the Full Font Name
Specifying Alternative Device-Resident Fonts
Transporting and Converting Graphics Output
About Transporting and Converting Graphics Output
Transporting Catalogs across Operating Environments
Converting Catalogs to a Different Version of SAS
GREPLAY Procedure Template Code
Overview
H2: One Box Left and One Box Right
H2S: One Box Left and One Box Right with Space
H3: Three Boxes Across
H3S: Three Boxes Across with Space
H4: Four Boxes Across
H4S: Four Boxes Across with Space
L1R2: One Box Left and Two Boxes Right
L1R2S: One Box Left and Two Boxes Right with Space
L2R1: Two Boxes Left and One Box Right
L2R1S: Two Boxes Left and One Box Right with Space
L2R2: Two Boxes Left and Two Boxes Right
L2R2S: Two Boxes Left and Two Boxes Right with Space
U1D2: One Box Up and Two Boxes Down
U1D2S: One Box Up and One Box Down with Space
U2D1: Two Boxes Up and One Box Down
U2D1S: Two Boxes Up and One Box Down with Space
V2: One Box Up and One Box Down
V2S: One Box Up and One Box Down with Space
V3: Three Boxes Vertically
V3S: Three Boxes Vertically with Space
Whole: Entire Screen Template
Recommended Reading
Glossary
Product
Release
SAS/GRAPH
9.3
Type
Usage and Reference
Copyright Date
August 2012
Last Updated
28Aug2012