PROC GREPLAY With Templates December 5, 2008 Barry Hong Process Analysis and Simulation U. S. Steel Canada © 2008 United States Steel Corporation.

Slides:



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

Better SAS Graphs or I can’t believe it’s not PowerPoint Jeff Marchand Non-Insured Health Benefits Health Canada.
© 2007 by Prentice Hall10-1 Introduction to Oracle 10g Chapter 10 Creating and Modifying Reports James Perry and Gerald Post.
Intermediate Level Course. Text Format The text styles, bold, italics, underlining, superscript and subscript, can be easily added to selected text. Text.
PowerPoint. Getting Started with PowerPoint Objectives Start PowerPoint and open presentations Explore toolbars and menus Use the Office Assistant Work.
How to prepare a PowerPoint presentation
McGraw-Hill Career Education© 2008 by the McGraw-Hill Companies, Inc. All Rights Reserved. Office PowerPoint 2007 Lab 1 Creating a Presentation.
XP New Perspectives on Microsoft Office FrontPage 2003 Tutorial 9 1 Microsoft Office FrontPage 2003 Tutorial 9 – Using Layout Tables, Styles, and Office.
Basic And Advanced SAS Programming
Graphics - setCoords. The coordinate system of Zelle graphics The default coordinate system for GraphWin is that the origin is in the upper left hand.
Database Design IST 7-10 Presented by Miss Egan and Miss Richards.
Review of last session The Weebly Dashboard The Weebly Dashboard Controls your account and your sites Controls your account and your sites From here you.
The gchart Procedure The gchart Procedure is used to create bar charts of various types (it can also create pie charts. It’s most basic form would look.
Drill-down Graphs By Heather Hoffman. Family Practice Department Project  Create drill-down graphs that depict % of patients for each CCS* over a given.
Dashboards With PROC GKPI September 25, 2009 Barry Hong
Dreamweaver – Setting up a Site and Page Layouts Web Design Section 7-2 Part or all of this lesson was adapted from the University of Washington’s “Web.
Tips & Tricks MASUG02/18/2005. Multiple Graphs on One Page.
TS02 SAS GTL - Injecting New Life into Graphs
Word 2007 Office Menu The options on the Office Menu are similar to those that were under File in earlier versions of office.
With Microsoft Office 2007 Intermediate© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Office 2007 Intermediate.
MICRO SOFT WORD.
Review of last session Add text to your website Add text to your website Title Title Paragraph Paragraph Title and paragraph Title and paragraph Add photographs.
Copyright © 2005, SAS Institute Inc. All rights reserved. Effective Use of SAS/GRAPH® Stored Processes Pat Berryman Senior Software Manager Data Visualization.
Introduction to SAS/Graph 9.2 Ken Barz Colorado Prevention Center 22Oct2009 Ken Barz Colorado Prevention Center.
Using the new Version 8 Template Procedure for Complete Control of SAS Output Style and Format David Ghan Technical Training Specialist SAS, Canada.
1. Chapter 6 Formatting Pages 3 Formatting Changes in Word You can use views other than the default Print Layout view when working with page design.
Introduction to Enterprise Guide Jennifer Schmidt Rhonda Ellis Cassandra Hall.
Laboratory 1. Introduction to SAS u Statistical Analysis System u Package for –data entry –data manipulation –data storage –data analysis –reporting.
ON PATHS LESS TRODDEN… Excursions in SAS/GRAPH ® and PROC TABULATE Presented by Aaron Rabushka © Aaron Rabushka 2000.
Effective SAS greplay’ing and how to avoid stretching By David Mottershead Senior Programmer, Quanticate.
Macromedia Dreamweaver 8 Revealed WEB PAGE DEVELOPING A.
Unit 1: Plotting DT2510: Advanced CAD Methods. Identifying the user interface: Application menu Quick Access toolbar InfoCenter Ribbon Drawing window.
Chapter 1: Overview of SAS System Basic Concepts of SAS System.
Tech Training 12/16/19 How to add a post How to edit a post How to add & assign a category How to add tags.
Unit 2, Lesson 7 Creating Web Pages and Web Documents.
Page Layout You can quickly and easily format the entire document to give it a professional and modern look by applying a document theme. A document theme.
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.
Computer Information Technology – Section 5-1 Some text and examples used with permission from: Note: We not endorsing or promoting.
SAS Beyond TFLs: An Application as a Statistician’s Tool William Coar Date: 10/15/2009 Denver SAS User’s Group.
PROC CATALOG The Wish Book SAS® Procedure. 2 PROC CATALOG, the Wish Book SAS® Procedure Louise S. Hadden Abt Associates Inc. PROC CATALOG, the Wish Book.
1 EPIB 698C Lecture 1 Instructor: Raul Cruz-Cano
Word 2010 Edit Page Layout In this lesson, you will learn how to insert columns and page breaks. How to change the page orientation, paper size, page margins,
Based on Learning SAS by Example: A Programmer’s Guide Chapters 1 & 2
Dreamweaver – Setting up a Site and Page Layouts Web Design Section 7-2 Part or all of this lesson was adapted from the University of Washington’s “Web.
Behind the Scenes with SAS®: Using Customer Graphics in SAS® Output Louise Hadden Abt Associates Inc.
Desktop Publishing Lesson 1 — Working with Documents.
1. Explore Interactive GIS 2. Create Map Layouts 3. Reuse a Custom Map Layout 4. Create a Custom Map Template 5. Add a Report to a Layout 6. Add a Graph.
Lesson 16-Templates and Wizards. Overview Use Word templates. Create new templates. Attach templates to documents. Modify templates. Use the Organizer.
HOW TO TUTORIAL: CREATING DATA VISUALIZATION GROUP 8.
Made with OpenOffice.org 1 Beyond the Single Page Steve Oualline OpenOffice Writer.
Excel for Teachers Presented by Ruthanne Munger
Setting Defaults in Microsoft Word for Accessibility
Creating Oracle Business Intelligence Interactive Dashboards
Project Objectives Lay out Web pages Create layers
T_C_N_L_G_ E D I D I E O Y O H I E B J I R E A A W.
Microsoft Publisher video tutorial
Dreamweaver – Setting up a Site and Page Layouts
Sunset Water Drop A PowerPoint Template.
An Animated PowerPoint
Degree works plans training
ON PATHS LESS TRODDEN… Excursions in SAS/GRAPH® PROC TABULATE and
Applications Software
European Computer Driving Licence
EndNote What is EndNote? EndNote Library, how to manage?
Project 4 Creating an Image Map.
Computer Basics Applications.
Welcome To Microsoft Word 2016
Presentation transcript:

PROC GREPLAY With Templates December 5, 2008 Barry Hong Process Analysis and Simulation U. S. Steel Canada © 2008 United States Steel Corporation

2 PROC GREPLAY With Templates Create a lot of graphs?

3 PROC GREPLAY Concept Create graphs in a catalog Eg. work.charts Replay graphs through a template VOILA! Four charts on one page

4 Basics Creating Graphics Default graphics catalog is work.gseg Graphic procedures have the option GOUT=lib.cat to store graphic images Procedure option NAME=‘gname’ permits you to name the graphic segment for future reference. Highly recommended In SAS 9.1 names are limited to 8 characters. If the name exists SAS will add numbers to the end of the name. In SAS 9.2 names can be up to 256 characters long Default name is based on the procedure In SAS 9.1, 9.2 classic, long name sequence is template templat1 templat2 … last character dropped

5 Example Creating Graphics Output graphics catalog is work.charts Graphic entry name is hbar. Default name would have been gchart. proc gchart data=site_sales gout=work.charts; format sales dollar8.; hbar site /frame sumvar=sales maxis=axis1 raxis=0 to by minor=0 descending name='hbar'; run; quit;

6 Page Coordinates Graphics Template Page is defined using an (X,Y) coordinate system with values in percent of the page. Coordinates are the same for both portrait and landscape orientation. (0,100) (ULX,ULY) (100,100) (URX,URY) (0,0) (LLX,LLY) (100,0) (LRX,LRY)

7 Preparation Graphics Template Layout your plan on a sheet of paper and determine the four corner coordinates for each panel. Panels can be numbered in any order. There is no limit to the number of panels you can create (0,100) (ULX,ULY) (50,100) (URX,URY) (0,50) (LLX,LLY) (50,50) (LRX,LRY) Panel 1Panel 2 Panel 3Panel 4

8 SAS Code to Create a Template Graphics Template Code terms: tc= the template catalog. Save in permanent catalog for reuse PROC GREPLAY tc=data.template nofs; tdef four des=’Four panels (2x2)’ /* define panel 1 */ 1/llx=0 lly=50 ulx=0 uly=100 urx=50 ury=100 lrx=50 lry=50 /* define panel 2 */ 2/llx=50 lly=50 ulx=50 uly=100 urx=100 ury=100 lrx=100 lry=50 /* define panel 3 */ 3/llx=0 lly=0 ulx=0 uly=50 urx=50 ury=50 lrx=50 lry=0 /* define panel 4 */ 4/llx=50 lly=0 ulx=50 uly=50 urx=100 ury=50 lrx=100 lry=0; Run; quit;

9 SAS Code to Create a Template Graphics Template Code terms: tc= the template catalog. Save in permanent catalog for reuse nofs = no full screen editing turns off the interactive window. Templates can be created in the interactive window. PROC GREPLAY tc=data.template nofs; tdef four des=’Four panels (2x2)’ /* define panel 1 */ 1/llx=0 lly=50 ulx=0 uly=100 urx=50 ury=100 lrx=50 lry=50 /* define panel 2 */ 2/llx=50 lly=50 ulx=50 uly=100 urx=100 ury=100 lrx=100 lry=50 /* define panel 3 */ 3/llx=0 lly=0 ulx=0 uly=50 urx=50 ury=50 lrx=50 lry=0 /* define panel 4 */ 4/llx=50 lly=0 ulx=50 uly=50 urx=100 ury=50 lrx=100 lry=0; Run; quit;

10 SAS Code to Create a Template Graphics Template Code terms: tc= the template catalog. Save in permanent catalog for reuse nofs = no full screen editing tdef defines the template, name is “four” Each panel requires eight values. Description is optional. PROC GREPLAY tc=data.template nofs; tdef four des=’Four panels (2x2)’ /* define panel 1 */ 1/llx=0 lly=50 ulx=0 uly=100 urx=50 ury=100 lrx=50 lry=50 /* define panel 2 */ 2/llx=50 lly=50 ulx=50 uly=100 urx=100 ury=100 lrx=100 lry=50 /* define panel 3 */ 3/llx=0 lly=0 ulx=0 uly=50 urx=50 ury=50 lrx=50 lry=0 /* define panel 4 */ 4/llx=50 lly=0 ulx=50 uly=50 urx=100 ury=50 lrx=100 lry=0; Run; quit;

11 SAS Code to Create a Template Graphics Template Code terms: tc= the template catalog. Save in permanent catalog for reuse nofs = no full screen editing tdef defines the template, name is “four” Only one semicolon after the last panel definition PROC GREPLAY tc=data.template nofs; tdef four des=’Four panels (2x2)’ /* define panel 1 */ 1/llx=0 lly=50 ulx=0 uly=100 urx=50 ury=100 lrx=50 lry=50 /* define panel 2 */ 2/llx=50 lly=50 ulx=50 uly=100 urx=100 ury=100 lrx=100 lry=50 /* define panel 3 */ 3/llx=0 lly=0 ulx=0 uly=50 urx=50 ury=50 lrx=50 lry=0 /* define panel 4 */ 4/llx=50 lly=0 ulx=50 uly=50 urx=100 ury=50 lrx=100 lry=0 ; Run; quit;

12 Replay graphs through the template PROC GREPLAY Code terms: igout= input graphics catalog PROC GREPLAY igout=work.charts tc=data.template template=four gout=work.composite nofs; treplay 1:hbar 2: vbar 3:pie 4:bubble name=‘fourplot’ des=‘Four Sales Plots’; run; quit;

13 Replay graphs through the template PROC GREPLAY Code terms: igout= input graphics catalog tc= the template catalog PROC GREPLAY igout=work.charts tc=data.template template=four gout=work.composite nofs; treplay 1:hbar 2: vbar 3:pie 4:bubble name=‘fourplot’ des=‘Four Sales Plots’; run; quit;

14 Replay graphs through the template PROC GREPLAY Code terms: igout= input graphics catalog tc= the template catalog template= template name in the template catalog PROC GREPLAY igout=work.charts tc=data.template template=four gout=work.composite nofs; treplay 1:hbar 2: vbar 3:pie 4:bubble name=‘fourplot’ des=‘Four Sales Plots’; run; quit;

15 Replay graphs through the template PROC GREPLAY Code terms: igout= input graphics catalog tc= the template catalog template= template name gout= output graphics catalog, default work.gseg PROC GREPLAY igout=work.charts tc=data.template template=four gout=work.composite nofs; treplay 1:hbar 2: vbar 3:pie 4:bubble name=‘fourplot’ des=‘Four Sales Plots’; run; quit;

16 Replay graphs through the template PROC GREPLAY Code terms: treplay links the template panels with the graphs PROC GREPLAY igout=work.charts tc=data.template template=four gout=work.composite nofs; treplay 1:hbar 2: vbar 3:pie 4:bubble name=‘fourplot’ des=‘Four Sales Plots’; run; quit;

17 Replay graphs through the template PROC GREPLAY Code terms: treplay links the template panels with the graphs name= option to name the composite graph, default is template PROC GREPLAY igout=work.charts tc=data.template template=four gout=work.composite nofs; treplay 1:hbar 2: vbar 3:pie 4:bubble name=‘fourplot’ des=‘Four Sales Plots’; run; quit;

18 Replay graphs through the template PROC GREPLAY Code terms: treplay links the template panels with the graphs name= option to name the composite graph, default is template des= optional description PROC GREPLAY igout=work.charts tc=data.template template=four gout=work.composite nofs; treplay 1:hbar 2:vbar 3:pie 4:bubble name=‘fourplot’ des=‘Four Sales Plots’; run; quit;

19 work.composite.fourplot.gseg PROC GREPLAY With Templates Panel coordinates can be set to create borders and white space between charts

20 Composite page with a banner PROC GREPLAY With Templates Panels do not have to be the same size. Panels can overlap, the banner panel covers the whole page.

21 Pay attention to panel coordinates PROC GREPLAY With Templates Mistakes in defining a panel can result in funny looking charts.

22 Panel coordinate errors PROC GREPLAY With Templates Panel corners did not define a rectangle

23 Panel coordinate errors PROC GREPLAY With Templates My favourite: the dimensional twist. Right side coordinates transposed

24 Summary Using PROC GREPLAY With Templates won’t get you this yacht but it will make you look like a big shot to your information consumers.

25 Bonus Section PROC GREPLAY With Templates If you want to get started with templates I can help with the following: SAS catalog containing lots of templates SAS macro to create page banners Contact me at Base SAS comes with a few templates in a catalog.