Resources

SAS Technical Papers » Graphics - SAS/GRAPH Software and SAS ODS Graphics

Papers Topic List 

SAS/GRAPH software

Date Title
May 2017 Decorative Infographics Using SAS® (PDF)
The SAS® 9.4 SGPLOT procedure is a great tool for creating all types of graphs, from business graphs to complex clinical graphs. The goal for such graphs is to convey the data in a simple and direct manner with minimal distractions. But often, you need to grab the attention of a reader in the midst of a sea of data and graphs. For such cases, you need a visual that can stand out above the rest of the noise. Such visuals insert a decorative flavor into the graph to attract the eye of the reader and to encourage them to spend more time studying the visual. This presentation discusses how you can create such attention-grabbing visuals using the SGPLOT procedure.
May 2017 Diving Deep into ODS Graphics Styles (PDF)
Creating an effective style for your graphics can make the difference between clearly conveying your message to your audience and hiding your message in a sea of lines, markers, and text. A number of books explain the concepts of effective graphics, but you need an understanding of how styles work in your environment to correctly apply those principles. The goal of this paper is to give you an in-depth discussion of how styles are applied to Output Delivery System (ODS) graphics, from the ODS style level all the way down to the graph syntax. This discussion includes information about differences in grouped versus non-grouped plots, precedence order of style application, using style references, and much more. Don't forget your scuba gear!
May 2017 Easy Polar Graphs with SG Procedures (PDF)
Some data is best visualized in a polar orientation, particularly when the data is directional or cyclical. Although the SG procedures and Graph Template Language (GTL) do not directly support polar coordinates, they are quite capable of drawing such graphs with a little bit of data processing. We demonstrate how to convert your data from polar coordinates to Cartesian coordinates and use the power of SG procedures to create graphs that retain the polar nature of your data. Stop going around in circles: let us show you the way out with SG procedures!
May 2017 Heat Maps: Graphical Displays for Big Data and Small Tables (PDF)
Heat maps use colors to communicate numeric data by varying the underlying values that represent red, green, and blue (RGB) as a linear function of the data. You can use heat maps to display spatial data, plot big data sets, and enhance tables. You can use colors on the spectrum from blue to red to show population density in a US map. In fields such as epidemiology and sociology, colors and maps are used to show spatial data, such as how rates of disease or crime vary with location. With big data sets, patterns that you would hope to see in scatter plots are hidden in dense clouds of points. In contrast, patterns in heat maps are clear, because colors are used to display the frequency of observations in each cell of the graph. Heat maps also make tables easier to interpret. For example, when displaying a correlation matrix, you can vary the background color from white to red to correspond to the absolute correlation range from 0 to 1. You can shade the cell behind a value, or you can replace the table with a shaded grid. This paper shows you how to make a variety of heat maps by using PROC SGPLOT, the Graph Template Language, and SG annotation.
April 2016 The GEOCODE Procedure and SAS® Visual Analytics (PDF)
This paper shows how PROC GEOCODE can be used to simplify geocoding by processing your location information before importing data into SAS Visual Analytics.
April 2016 The New SAS® Map Data Sets (PDF)
This paper explores the new maps by discussing the problems and limitations with the old map data, along with showing features and examples of using the new map data.
May 2015 Graphs are Easy with SAS 9.4 (PDF)
Axis tables, polygon plot, text plot, and more features have been added to Statistical Graphics (SG) procedures and Graph Template Language (GTL) for SAS® 9.4. These additions are a direct result of your feedback and are designed to make creating graphs easier. Axis tables let you add multiple tables of data to your graphs and to correctly align with the axis values with the right colors for group values in your data. Text plots can have rotated and aligned text anywhere in the graph. You can overlay jittered markers on box plots, use images and font glyphs as markers, specify group attributes without making style changes, and create entirely new custom graphs using the polygon plot. All this without using the annotation facility, which is now supported both for SG procedures and GTL. This paper guides you through these exciting new features now available in SG procedures and GTL.
May 2015 Lost in the Forest Plot? Follow the Graph Template Language AXISTABLE Road! (PDF)
In this paper, we demonstrate the simplicity of creating various forest plots using AXISTABLE statements.
March 2014 Understanding Basic Microsoft Windows Performance Metrics by Customizing the Data Results in SAS/GRAPH Software (PDF)
This paper uses a SAS data set that contains a subset of the most common performance counters to show how SAS programmers can create an improved, easily understood view of the key performance counters by using SAS/GRAPH software.
April 2013 "Google-Like" maps in SAS (PDF)
This paper describes the "Google-like" maps now available in SAS Visual Analytics Explorer, SAS/GRAPH, and other products.
May 2012 Using SAS/GRAPH to Create Visualizations That Also Support Tactile and Auditory Interaction (PDF)
This paper demonstrates best practices for multimodal visualizations for blind users of the iPad and other touchscreen mobile devices.
May 2012 Together at Last: Spatial Analysis and SAS Mapping (PDF)
This paper introduces a new framework that combines SAS spatial analytics with SAS mapping. Examples demonstrate how to use the SAS/GRAPH Annotate facility with the transparency specification (new in SAS 9.3) to combine a predicted spatial surface with traditional SAS/GRAPH maps. It also demonstrates how to tap into the additional mapping resources of ESRI software through the SAS Bridge for ESRI.
April 2011 Now You Can Annotate Your Statistical Graphics Procedure Graphs (PDF)
This paper explains how to add custom labeling or other graphical features directly to your statistical graphics procedure output by using the new annotation support in the SAS® 9.3 statistical graphics procedures.
May 2010 Customize Your SAS® Enterprise Guide® Graphs for a More Professional Look (PDF)
This paper explores some tips and techniques that use the detailed capabilities in SAS Enterprise Guide to customize your graphs.
May 2010 PROC GEOCODE: Now with Street-Level Geocoding (PDF)
This paper discusses both geocoding and geolocating using PROC GEOCODE.
November 2009 Modifying ODS Statistical Graphics Templates in SAS® 9.2 (PDF)
With the release of SAS 9.2, over sixty statistical procedures use ODS Statistical Graphics to produce graphs as automatically as they produce tables. This paper reviews the basics of ODS Statistical Graphics and focuses on programming techniques for modifying the default graphs.
March 2009 Tips and Tricks IV: More SAS/GRAPH® Map Secrets (PDF)
This paper shares the secrets to allow you to exploit the power of SAS/GRAPH maps. Get the maps you really want with PROC GMAP! This paper demonstrates how to do this using both existing functionality and new SAS® 9.2 functionality.
March 2009 SAS Tile Charts: Thousands of Business Tips with One Click (PDF)
This paper outlines the capabilities and business uses of the SAS tile chart. The SAS tile chart looks like the landscape of Kansas when viewed from a window seat on your favorite airline, but its effective use of the color, size, and data tips in a hierarchical grid communicates important business intelligence information.
March 2009 Secrets of the SG Procedures (PDF)
The SAS/GRAPH® SG procedures provide an extensive set of plots and supporting statements to create common graphs. This paper presents techniques that enable you to create many of the specialized graphs that you need in your industry.
March 2009 Clinical Trial Reporting Using SAS/GRAPH® SG Procedures (PDF)
Clinical laboratory results need to be presented within the context of acceptable limits, and subtle changes over time must be highlighted. This paper shows, by example, how you can easily create graphs for this purpose using the SAS/GRAPH® SG procedures.
March 2008 Introduction to the Graph Template Language (PDF)
The Graph Template Language (GTL) is used by many SAS analytical procedures to create the automatic graphical output within the Output Delivery System (ODS). This presentation helps you understand the basics of GTL, and how you can leverage its features to customize your graphs.
March 2008 Effective Graphics Made Simple Using SAS/GRAPH SG Procedures (PDF)
The goal of graph creators should be to convey the information that is contained in the data as clearly and concisely as possible. Many factors can affect clarity, including poor choice of chart type, clutter in the chart, and poor choice of style attributes.

SAS ODS Graphics

Date Title
July 2016 An Overview of ODS Statistical Graphics in SAS 9.4 (PDF)
This paper presents the essential information you need to get started with ODS Graphics in SAS 9.4.
April 2016 Annotating the SAS ODS Graphics Way! (PDF)
This paper covers some basic concepts of annotating that are common to both GTL and the SG procedures.
April 2016 Highly Customized Graphs Using ODS Graphics (paper) (PDF)
This paper illustrates how to use SG annotation to modify graphs that analytical procedures produce. It also shows how to use the ODS document to capture the values that the procedure sets for the dynamic variables, which control many of the details of how the graph is created.
April 2016 Clinical Graphs Using SAS (PDF)
This paper shows how to create many industry-standard graphs such as Lipid Profile, Swimmer Plot, Survival Plot, Forest Plot with Subgroups, Waterfall Plot, and Patient Profile using Study Data Tabulation Model (SDTM) data.
April 2016 Graph A Million with the SGPLOT Procedure (PDF)
This paper presents some graphs that work better for large data sets.
April 2016 Highly Customized Graphs Using ODS Graphics (PDF)
SG annotation can be used to modify graphs that analytical procedures produce. Then PROC SGRENDER can be used along with the ODS output data set, the captured or modified dynamic variables, the modified templates, and SG annotation to create highly customized graphs. This paper shows you how and provides examples.
March 2014 Plotting Against Cancer: Creating Oncology Plots Using SAS (PDF)
This paper provides examples and illustrates how to create plots like drug concentration versus time plots, waterfall charts, comparative survival plots, and other graphs using Graph Template Language and the ODS Graphics procedures.
March 2014 Take One SAS Graph Template Language Graph before Seeing the Patient (PDF)
This paper attempts to provide a composite view of a patient using SAS Graph Template Language (GTL) to create a profile graph using the following data elements: key event dates, drugs, adverse events, and Quality of Life (QoL) scores.
March 2014 New Ways to Style Your ODS Graphics to the Max (PDF)
This paper attempts to provide a composite view of a patient using SAS Graph Template Language (GTL) to create a profile graph using the following data elements: key event dates, drugs, adverse events, and Quality of Life (QoL) scores.
April 2013 Make a Good Graph (PDF)
This paper covers basic and advanced features that make a good graph.
April 2013 A Day in the Life of Data – Part 4 (PDF)
This paper is part of a series of four papers that describe several techniques using the same data. This paper on part 4 shows Graphics and Reporting.
April 2013 Free Expressions and Other GTL Tips (PDF)
This paper covers some new ways of using DATA step functions for creating grouped plots based on conditions and to select a subset of the observations.
April 2013 GTL to the Rescue! (PDF)
This paper describes how to use ODS Graphics Template Language (GTL) to split the axis values across multiple lines, add a table under a graph, or create a template with which you can conditionally execute statements and dynamically assign variables.
April 2013 Creating and Customizing the Kaplan-Meier Survival Plot in PROC LIFETEST (PDF)
This paper provides examples of survival plot modifications using procedure options, graph template modifications using macros, and style template modifications.
October 2012 Quick Results with SAS ODS Graphics Designer (PDF)
ODS Graphics Designer is a new interactive application released with the third maintenance release for SAS 9.2 as part of the SAS/GRAPH product. The designer is based on Graph Template Language (GTL). This paper takes you step-by-step through the features of the application.
May 2012 Off the Beaten Path: Create Unusual Graphs with GTL (Graph Template Language) (PDF)
This paper covers many tricks and tips to create unique graphs that grab the reader's attention, and also deliver the information effectively. Learn how to stretch the boundaries of what is possible with ODS Graphics.
August 2011 An Overview of ODS Statistical Graphics in SAS® 9.3 (PDF)
This paper presents the essential information you need to get started with ODS Graphics in SAS 9.3.
April 2011 Tips and Tricks for Clinical Graphs using ODS Graphics (PDF)
This presentation includes tips and tricks you can use in statistical graphica procedures and graph template language programs to build your graphs. Most examples use the second maintenance release of SAS® 9.2, and also includes a sneak preview of some powerful new features to be released with SAS® 9.3.
April 2011 Introduction to ODS Graphics for the Non-Statistician (PDF)
This presentation illustrates how to use Base® SAS procedures and new statistical graphics procedures (in particular, SGPLOT and SGPANEL) in SAS/GRAPH® to produce simple plots and bar charts.
February 2011 ODS Graphics Designer: An Interactive Tool for Creating Batchable Graphs (PDF)
This paper discusses the new ODS Graphics Designer application, which provides an interactive process for creating effective graphs.
May 2010 The Graph Template Language and the Statistical Graphics Procedures:An Example-Driven Introduction (PDF)
This paper provides a gentle, parallel, and example-driven introduction to the graph template language and the statistical graphics procedures.
May 2010 Creating Presentation-Quality ODS Graphics Output (PDF)
This paper discusses effective graphics principles, style control, resolution control, and presentation medium considerations.
March 2010 Clinical Graphs using ODS Graphics (PDF)
This paper describes how to use ODS graphics to create standard graphs for the Health and Life Sciences industry.
August 2009 Getting Started with ODS Statistical Graphics in SAS® 9.2—Revised 2009 (PDF)
This paper presents the essential information you need to get started with ODS Graphics in SAS 9.2.
March 2008 Introduction to the Graph Template Language (PDF)
The Graph Template Language (GTL) is used by many SAS analytical procedures to create the automatic graphical output within the Output Delivery System (ODS). This presentation helps you understand the basics of GTL, and how you can leverage its features to customize your graphs.