Introduction to SAS/Graph 9.2 Ken Barz Colorado Prevention Center 22Oct2009 Ken Barz Colorado Prevention Center.

Slides:



Advertisements
Similar presentations
Summary Statistics/Simple Graphs in SAS/EXCEL/JMP.
Advertisements

Taking the Leap - Using ODS Statistical Graphics for Data Visualization Wei Cheng, Isis Pharmaceuticals, Inc.
Minitab® 15 Tips and Tricks
Using ODS Regions to Create Custom Reports Kate Morrow, M.S. Statistician Vermont Oxford Network, Burlington, VT.
Tutorial 12: Enhancing Excel with Visual Basic for Applications
How to Create a Custom Style Sonia Extremera / Antonio Nieto / Javier Gómez PhUSE Annual Conference, 9th-12th Oct 2011, Brighton UK.
Lesson 16 Enhancing Documents
Creating Accessible Math and Science Materials Ron Stewart, Access Technology Instructor, HTCTU California Community Colleges Chair, AHEAD Instructional.
MATLAB’s extensive, device-independent plotting capabilities are one of its most powerful features. They make it very easy to plot any data at any time.
Poster Print Size: This poster template is 20” high by 24” wide. It can be used to print any poster with a 3:4 aspect ratio. Placeholders: The various.
What is New in SAS 9.2? Graphics and More. A Brief History of SAS Graphics 6.x 7.x = had the Output Delivery System (ODS) but it was not widely available.
Graphing With Excel 2010 University of Michigan – Dearborn Science Learning Center Based on a presentation by James Golen Revised by Annette Sieg…
Poster Print Size: This poster template is 36” high by 36” wide. It can be used to print any poster with a 1:1 aspect ratio. Placeholders: The various.
Copyright © 2007, SAS Institute Inc. All rights reserved. SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks.
Introduction to SPSS (For SPSS Version 16.0)
Welcome to SAS…Session..!. What is SAS..! A Complete programming language with report formatting with statistical and mathematical capabilities.
Software Apps. Word, PowerPoint, Excel, Access Mr. Miller.
Dashboards With PROC GKPI September 25, 2009 Barry Hong
Bay Area SUG June SAS ® 9.2 Implications for Biotech SAS ® 9.2 Implications for Biotech Bay Area SAS User’s Group June 7 th 2010 Sarmad Pirzada,
Poster Print Size: This poster template is 21” high by 45” wide and is printed at 200% for a 42” high by 90” wide poster. It can be used to print any poster.
Chapter 1 Introduction to SAS ® Enterprise Guide ®
Tips & Tricks MASUG02/18/2005. Multiple Graphs on One Page.
Introduction to SAS. What is SAS? SAS originally stood for “Statistical Analysis System”. SAS is a computer software system that provides all the tools.
TS02 SAS GTL - Injecting New Life into Graphs
My ODS: Real-World Uses of Modifying Table Templates Steve James Centers for Disease Control and Prevention Atlanta, Ga.
Copyright © 2008 SAS Institute Inc. All rights reserved. SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks.
ODS Statistical Graphics in SAS 9.2 January 17, 2010.
Introduction to Computer Programming Using C Session 23 - Review.
01/20151 EPI 5344: Survival Analysis in Epidemiology SAS code and output February 24, 2015 Dr. N. Birkett, School of Epidemiology, Public Health & Preventive.
M AKE E ASY S TYLE T EMPLATES U SING SAS M ACRO Barbara Harlan.
Microsoft Office Illustrated Fundamentals Unit I: Working with Charts.
Using the new Version 8 Template Procedure for Complete Control of SAS Output Style and Format David Ghan Technical Training Specialist SAS, Canada.
ราชภัฏสุราษฎร์ธานีวิจัย ครั้งที่ 11
Publishing to PDF SNUG Quarter 2. Overview n What is PDF? n Why use PDF? n Creating PDF files with SAS Software n Issues n Advanced PDF files with SAS.
Introduction to Enterprise Guide Jennifer Schmidt Rhonda Ellis Cassandra Hall.
SAS ODS (Output Delivery System) Donald Miller 812 Oswald Tower ;
By N.Gopinath AP/CSE Cognos Impromptu. What is Impromptu? Impromptu is an interactive database reporting tool. It allows Power Users to query data without.
ON PATHS LESS TRODDEN… Excursions in SAS/GRAPH ® and PROC TABULATE Presented by Aaron Rabushka © Aaron Rabushka 2000.
Poster Print Size: This poster template is 44” high by 44” wide. It can be used to print any poster with a 1:1 aspect ratio. Placeholders: The various.
Statistical Graphics for the SAS System Computing for Research I 01/29/2014 Nathaniel L Baker.
Effective SAS greplay’ing and how to avoid stretching By David Mottershead Senior Programmer, Quanticate.
1 Lesson 13 Organizing and Enhancing Worksheets Computer Literacy BASICS: A Comprehensive Guide to IC 3, 3 rd Edition Morrison / Wells.
PROC GPLOT GPLOT is used to make two dimensional scatter-plots. General Syntax: proc gplot data=data-set options; plot y-variable*x-variable/options; run;
MASUG September 15, Agenda  Guest Introductions  John Boling – SAS inSchool  Tim Garton – Health Forecasts  Announcements  Tips & Tricks 
Walkthrough example including SAS output How to create a mobile WebApp? PhUSE / 12. October 2015 / Katja Glaß BHC 4:3 Template 2010 June 2014Page 1.
Microsoft Visual Basic 2008: Reloaded Third Edition Chapter One An Introduction to Visual Basic 2008.
1 Chapter 3: Getting Started with Tasks 3.1 Introduction to Task Dialogs 3.2 Creating a Listing Report 3.3 Creating a Frequency Report 3.4 Creating a Two-Way.
#pharmasug About OMICS Group OMICS Group is an amalgamation of Open Access Publications and worldwide international science conferences and events. Established.
Template Provided By Genigraphics –
SAS/GRAPH The Basics. Today’s Topics GOPTIONS GPLOT GCHART GCONTOUR G3D.
Introduction to SAS ODS Graphics September 16, 2015 Rocio Lopez.
1 Data Manipulation (with SQL) HRP223 – 2009 October 12, 2009 Copyright © Leland Stanford Junior University. All rights reserved. Warning: This.
ODS TAGSETS - a Powerful Reporting Method Derek. 2 Agenda Understanding the tagset How to use tagsets Conclusion.
Behind the Scenes with SAS®: Using Customer Graphics in SAS® Output Louise Hadden Abt Associates Inc.
SAS ® 101 Based on Learning SAS by Example: A Programmer’s Guide Chapters 14 & 19 By Tasha Chapman, Oregon Health Authority.
Reporting The Facts: The ODSmemo macro suite for making reproducible RTF memos within SAS® Rocio Lopez Cleveland Clinic.
A MORE COMPLETE ODS REPORT. What we’re going to talk about…  Creating a title page  Creating an introduction page  Creating long-form text descriptions.
ODS Graphics By Example March 16, 2016 Rocio Lopez.
Chapter 5: Enhancing Your Output with ODS
Chapter 1: An Introduction to Visual Basic 2015
Lesson 16 Enhancing Documents
Objectives At the end of this session, students will be able to:
Chapter 8: ODS Graphics ODS graphics were not available prior to SAS 9.2 They have been implemented across a wide range of procedures Functionality isn’t.
A Different Point of View with ODS PDF in SAS® 9.3
INTRODUCTION TO SGPLOT Zahir Raihan OVERVIEW  ODS Graphics  SGPLOT overview  Plot Content  High value plot statements  High value plot options 
8.02 Spreadsheet Formatting
Click Headings Above to View Content
Presentation transcript:

Introduction to SAS/Graph 9.2 Ken Barz Colorado Prevention Center 22Oct2009 Ken Barz Colorado Prevention Center 22Oct2009

In the Beginning, there was Base SAS: Proc plot – listing output only –Think stick figures on a line printer SAS/Graph : proc gplot –ODS output as of SAS 8 –Color graphics, sometimes crude, extra $$$ –Complex  steep learning curve Base SAS: Proc plot – listing output only –Think stick figures on a line printer SAS/Graph : proc gplot –ODS output as of SAS 8 –Color graphics, sometimes crude, extra $$$ –Complex  steep learning curve

The “Typical” SAS Programmer Knowledge of data and proc steps Able to use libname, filename, title and footnote statements Statistical and reporting procedures Maybe some ODS and macro language Knowledge of data and proc steps Able to use libname, filename, title and footnote statements Statistical and reporting procedures Maybe some ODS and macro language

Learning SAS/Graph 6 – Open code vs. run groups Catalogs, grseg files, SAS registry, and hardware devices. Options, goptions, greplay, symbols, axes, legends, line types, interpolation parameters, fonts, ODS, annotate, and … Open code vs. run groups Catalogs, grseg files, SAS registry, and hardware devices. Options, goptions, greplay, symbols, axes, legends, line types, interpolation parameters, fonts, ODS, annotate, and …

The SAS/Graph 9.2 Approach (Do-Overs!) Template-based graphics as opposed to device-based graphics. (e.g. proc template) Default output is to an industry standard (e.g. ODS listing destination=PNG file.) Full integration with ODS Output catalogs, grsegs, devices, goptions, annotate, global statements… all go away Template-based graphics as opposed to device-based graphics. (e.g. proc template) Default output is to an industry standard (e.g. ODS listing destination=PNG file.) Full integration with ODS Output catalogs, grsegs, devices, goptions, annotate, global statements… all go away

The SAS/Graph 9.2 Approach (cont: Main Elements) Proc Template Statistical Graphics (SG) Procedures ODS Graphics Statement ODS Graphics Editor/Designer Graph Template Language (GTL) Proc Template Statistical Graphics (SG) Procedures ODS Graphics Statement ODS Graphics Editor/Designer Graph Template Language (GTL)

Learning Proc Template via ODS Learn the majority of ODS Use ODS Trace to determine SAS output objects Learn the capabilities and syntax of proc template Figure out how to combine it all Learn the majority of ODS Use ODS Trace to determine SAS output objects Learn the capabilities and syntax of proc template Figure out how to combine it all

(Proc) Template-Based Graphics (SAS 9.2 +) Output is produced from a compiled ODS template of type STATGRAPH (other types include TABLE, COLUMN, FOOTER, HEADER, CROSSTABS, CELLVALUE, STYLE, TAGSET) Statistical Graphics procedures use templates (sgplot, sgpanel, …) provided by SAS Custom templates may be created with Proc Template, the Graphics Template Language (GTL) and Proc sgrender. Output is produced from a compiled ODS template of type STATGRAPH (other types include TABLE, COLUMN, FOOTER, HEADER, CROSSTABS, CELLVALUE, STYLE, TAGSET) Statistical Graphics procedures use templates (sgplot, sgpanel, …) provided by SAS Custom templates may be created with Proc Template, the Graphics Template Language (GTL) and Proc sgrender.

Minimum Template Code (defaults to sasuser.templat catalog) proc template; define statgraph mytemplate; begingraph; layout overlay; endlayout; endgraph; end; run; proc template; define statgraph mytemplate; begingraph; layout overlay; endlayout; endgraph; end; run;

Benefits of Template-Based 9.2 Graphics Graphics are clean, easy to code and produce Sizing determined by aspect ratio, not hardware device Tight integration with ODS, Styles and RTF/Unicode syntax Attributes cycle automatically Complex output is easily achieved Graphics are clean, easy to code and produce Sizing determined by aspect ratio, not hardware device Tight integration with ODS, Styles and RTF/Unicode syntax Attributes cycle automatically Complex output is easily achieved

Statistical Graphics Procedures SGPlot SGPanel SGScatter SGRender SGPlot SGPanel SGScatter SGRender

Statistical Graphics Procedures (cont) Support for: By group processing Formats/Titles/Footnotes/Labels ODS Graphics statement manages settings Support for: By group processing Formats/Titles/Footnotes/Labels ODS Graphics statement manages settings

ODS Graphics Statement Controls the runtime environment for producing template-based graphs Similar to the old goptions statement (with fewer options) Options for reset, size, image name and format, scale, dpi, antialiasing, … Enables the creation of default Statistical Procedure graphs Controls the runtime environment for producing template-based graphs Similar to the old goptions statement (with fewer options) Options for reset, size, image name and format, scale, dpi, antialiasing, … Enables the creation of default Statistical Procedure graphs

The ODS Graphics Editor/Designer (9.2 Phase 2) Interactively add, edit or delete titles, footnotes, super/subscripts, labels, lines, symbols, … Change the style or the size of the graph Add annotation to the graph Available within SAS or as a stand-alone downloadable application Interactively add, edit or delete titles, footnotes, super/subscripts, labels, lines, symbols, … Change the style or the size of the graph Add annotation to the graph Available within SAS or as a stand-alone downloadable application

Graph Template Language Creating a graph using GTL involves: Defining the structure of the graph using the GTL syntax in a STATGRAPH template that is specified on the TEMPLATE procedure. Creating the graph by running the SGRENDER procedure to associate the appropriate data with the template. Creating a graph using GTL involves: Defining the structure of the graph using the GTL syntax in a STATGRAPH template that is specified on the TEMPLATE procedure. Creating the graph by running the SGRENDER procedure to associate the appropriate data with the template.

Graph Template Language (cont) Graph layout options include: Overlay Gridded/Lattice Datapanel OverlayEquated Overlay3D Graph layout options include: Overlay Gridded/Lattice Datapanel OverlayEquated Overlay3D

Graph Template Language (cont) Graph templates allow customization of: Titles, footnotes, row and column headers, sidebars and text entries. Linear, time and log axes. Styles and attributes. Appearance of grouped and non-grouped data. Graph templates allow customization of: Titles, footnotes, row and column headers, sidebars and text entries. Linear, time and log axes. Styles and attributes. Appearance of grouped and non-grouped data.

Graph Template Language (cont) Graph templates also allow the use of: Dynamics Macro variables Conditional logic, expressions and functions Graph templates also allow the use of: Dynamics Macro variables Conditional logic, expressions and functions

Conclusion In version 9.2, SAS/Graph has been completely re- written to a template-based orientation. Clean and intricate graphs can now be produced via a straight forward coding method. The old approaches to SAS/Graph still mostly work as well. Thank you! In version 9.2, SAS/Graph has been completely re- written to a template-based orientation. Clean and intricate graphs can now be produced via a straight forward coding method. The old approaches to SAS/Graph still mostly work as well. Thank you!