Click Headings Above to View Content

Slides:



Advertisements
Similar presentations
Chapter 3 – Web Design Tables & Page Layout
Advertisements

Taking the Leap - Using ODS Statistical Graphics for Data Visualization Wei Cheng, Isis Pharmaceuticals, Inc.
Jeopardy Multiple Choice Fill in the Blank Modified T/F Vocabulary Positioning of data Q $100 Q $200 Q $300 Q $400 Q $500 Q $100 Q $200 Q $300 Q $400.
Introduction to Microsoft Excel 2010 Chapter Extension 3.
Graphing With Excel 2010 University of Michigan – Dearborn Science Learning Center Based on a presentation by James Golen Revised by Annette Sieg…
1 Committed to Shaping the Next Generation of IT Experts. Chapter 3 – Graphs and Charts: Delivering a Message Robert Grauer and Maryann Barber Exploring.
CS1100: Computer Science and Its Applications Creating Graphs and Charts in Excel.
Lesson: 4 Spreadsheets After completing this lesson, you will be able to: Identify the components of a spreadsheet. Enter data into a spreadsheet. Perform.
CS123 Engineering Computation Lab Lab 2 Bruce Char Department of Computer Science Drexel University Spring 2010.
Microsoft Excel. Excel specializes in creating and designing spreadsheets, or worksheets Worksheet – area to insert data Workbook – a set of worksheets.
Exploring Excel 2003 Revised - Grauer and Barber 1 Committed to Shaping the Next Generation of IT Experts. Chapter 3 – Graphs and Charts: Delivering a.
TS02 SAS GTL - Injecting New Life into Graphs
Remember…  Please do not…  Change the background.  Change the icons.  Change the font. Use Times New Roman (size 12 font).  Use color. We cannot print.
Designing a Web Page with Tables. A text table: contains only text, evenly spaced on the Web page in rows and columns uses only standard word processing.
A Picture Is Worth A Thousand Words. DAY 7: EXCEL CHAPTER 4 Tazin Afrin September 10,
Microsoft Office 2007 Intermediate© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! With Microsoft ® Office 2007 Intermediate Chapter.
Microsoft Excel. Excel specializes in creating and designing spreadsheets, or worksheets Worksheet – area to insert data Workbook – a set of worksheets.
Introduction to SAS/Graph 9.2 Ken Barz Colorado Prevention Center 22Oct2009 Ken Barz Colorado Prevention Center.
DAY 6: MICROSOFT EXCEL – CHAPTER 3 Sravanthi Lakkimsetty September 2, 2015.
Kaitlyn McConville, Rho ®, Inc. Kristen Much, Rho ®, Inc. PharmaSUG 2015 Paper #DV02.
Mr. Magdi Morsi Statistician Department of Research and Studies, MOH
LOGO Chapter 4 Charts 1. LOGO What is a Chart?  Charts are visual representations of worksheet data. Charts often makes it easier to understand the data.
Intermacs Form Download Excel Tutorial Pivot Tables, Graphic Tools, Macros By: Devin Koehl.
Key Applications Module Lesson 14 — Working with Tables Computer Literacy BASICS.
EXCEL GRAPHING *Basic Graphing Steps* by A.B. -NNHS.
Remember…  Please do not…  Change the background.  Change the icons.  Change the font. Use Times New Roman (size 12 font).  Use color. We cannot print.
SAS GTL. What we’re going to cover… Some basics Layouts Plots Examples.
Microsoft® PowerPoint © 2011 The McGraw-Hill Companies, Inc. All rights reserved. 3.
Kaplan-Meier Survival Plotting Macro %NEWSURV Jeffrey Meyers Mayo Clinic, Rochester, MN.
Chapter 5: Charts & Sparklines Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University Name.
ODS Graphics By Example March 16, 2016 Rocio Lopez.
CNIT 131 HTML5 - Tables.
Integrating Office 2003 Applications and the World Wide Web
Charts & Graphs CTEC V
Office tool for creating tables and charts
Add More Zing to your Dashboards – Creating Zing Plot Gadgets
Using Excel to Construct Basic Tools for Understanding Variation
Computer Fundamentals
Introduction to Excel 2007 January 29, 2008.
Positioning Objects with CSS and Tables
Lesson 2 Tables and Charts
Excel Part 4 Working with Charts and Graphics
CONTENT MANAGEMENT SYSTEM CSIR-NISCAIR, New Delhi
Charts and Graphs V
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.
Excel Part 4 Working with Charts and Graphics
Microsoft Excel 101.
SPREADSHEETS Parts of a graph Data Range X and Y axes
Using Excel to Graph Data
Chapter 6 Working with Publisher Tables
Statistical Analysis with Excel
Statistical Analysis with Excel
Chapter 11 Review.
exploring Microsoft Office 2013 Plus
Statistical Analysis using SPSS
Use of SAS® Graph Template Language and HIGHLOWPLOT to Create a Next-Generation Sequencing Multi-Gene Panel Grid John Bennett Statistical Programmer Genomic.
Kriss Harris, SAS Programmer, SAS Specialists Limited
Richann Watson, DataRich Consulting; Lynn Mullins, PPD Abstract
Topic 7: Visualization Lesson 1 – Creating Charts in Excel
Tutorial 7 – Integrating Access With the Web and With Other Programs
Objectives At the end of this session, students will be able to:
Charts A chart is a graphic or visual representation of data
Positioning Objects with CSS and Tables
Executive Admin Assistant
Excel Part 4 Working with Charts and Graphics
Key Applications Module Lesson 14 — Working with Tables
Executive Admin Assistant
Introduction to Excel 2007 Part 1: Basics and Descriptive Statistics Psych 209.
How to Use Microsoft Excel for Data Entry
Presentation transcript:

Click Headings Above to View Content Great Time to Learn GTL Kriss Harris, SAS Specialists Limited; Richann Watson, DataRich Consulting Abstract Why Learn GTL It’s a Great Time to Learn GTL! Do you want to be more confident when producing GTL graphs? Do you want to know how to layer your graphs using the OVERLAY layout and build upon your graphs using multiple LAYOUT statement? Layouts Single cell Why Learn GTL? Multi-cell Allow for modifications of pre-defined templates Create graphs that cannot be produced from a pre-defined template Easier to incorporate features, such as embedded tables or display different graphs on the same page Per Sanjay Matange (2013, p.5) GTL provides in one system the full set of features that you need to create graphs from the simplest scatter plots to complex diagnostics panels. GTL is the language used to create the templates shipped by SAS for the creation of the automatic graphs from the analytical procedures. To customize one of these graphs, you will need to understand GTL. GTL represents the future for analytical graphics in SAS. New features are being added to GTL with every SAS release. Layout Syntax 2-Step Process Single-Cell Example Multi-Cell Example Conclusions Click Headings Above to View Content

Great Time to Learn GTL Single Cell vs Multi-Cell Graph Area Kriss Harris, SAS Specialists Limited; Richann Watson, DataRich Consulting Single Cell vs Multi-Cell Why Learn GTL Title/Top Axis Label Graph Area Layouts Single cell Side Title/Left Axis Label Side Title/Right Axis Label Multi-cell Title/Top Axis Label Layout Syntax Footnote/Bottom Axis Label 2-Step Process Side Title / Left Axis Label Side Title/Right Axis Label Single-Cell Example Output Area Multi-Cell Example Footnote/Bottom Axis Label Conclusions Note that for Multi-cell layouts each cell can have its own set of axes depending on the layout used. Click Headings Above to View Content

Click Headings Above to View Content Great Time to Learn GTL Kriss Harris, SAS Specialists Limited; Richann Watson, DataRich Consulting Single Cell Layouts Why Learn GTL A graph which uses the entire graphing area OVERLAY: General layout with 2-D plots OVERLAYEQUATED: Overlay with equated axes PROTOTYPE: Specialized, used with DATAPANEL or DATALATTICE only REGION: General plot with no axes OVERLAY3D: General layout with 3-D plots Layouts Single cell Multi-cell Layout Syntax 2-Step Process Single-Cell Example Multi-Cell Example For examples refer to Single Cell Examples https://blogs.sas.com/content/graphicallyspeaking/2017/07/24/lollipop-charts/ https://blogs.sas.com/content/graphicallyspeaking/2017/04/30/getting-started-with-sgplot-histograms/ Conclusions Click Headings Above to View Content

Click Headings Above to View Content Great Time to Learn GTL Kriss Harris, SAS Specialists Limited; Richann Watson, DataRich Consulting Multi-cell Layouts Why Learn GTL Pre-defined: A graph that breaks the graphing area into pre-defined portions so that each portion represents different pieces of information. GRIDDED: multi-cell plots have the same proportion in regards to height and width. LATTICE: very flexible, which allows each cell to have different heights and widths. Both GRIDDED and LATTICE can be used along with the OVERLAY layout. With these two layouts other types of layouts can be nested within each cell. Data-driven (2-D: Panels of similar graphs based on data classification variables): A graph that breaks the graphing area into as many parts necessary based on the data DATAPANEL: Number of cells based on crossings of n classification variables DATALATTICE: Number of cells based on crossings of 1 or 2 classification variables. Both DATAPANEL and DATALATTICE need to use the PROTOTYPE layout. Layouts Single cell Multi-cell Layout Syntax 2-Step Process Single-Cell Example Multi-Cell Example For examples refer to Multi-Cell Examples https://blogs.sas.com/content/graphicallyspeaking/2012/12/03/most-frequent-ae-sorted-by-relative-risk/ https://blogs.sas.com/content/graphicallyspeaking/2014/02/22/datalattice-with-gradient-backgrounds/ Conclusions Click Headings Above to View Content

Click Headings Above to View Content Great Time to Learn GTL Kriss Harris, SAS Specialists Limited; Richann Watson, DataRich Consulting General Syntax for OVERLAY and GRIDDED Why Learn GTL layout type </options>; GTL Plot Statements … e.g., SCATTERPLOT, SERIESPLOT, BOXPLOT, etc. <innermargin </options>; block-plot or axis-table statements;  end innermargin;> endlayout; Layouts OVERLAY and PROTOTYPE Only Single cell General Syntax for LATTICE Multi-cell layout LATTICE </options>; … <columnaxes </options>; columnaxis/axis-option(s); endcolumnaxes;> <column2axes </options>; endcolumn2axes;> <rowaxes </options>; rowaxis/axis-option(s);   endrowaxes;> … <row2axes </options>; rowaxis / axis-option(s); endrow2axes;> <columnheaders; endcolumnheaders;> <rowheaders; endrowheaders;> <sidebar </options>; endsidebar;> endlayout; Layout Syntax 2-Step Process Single-Cell Example Multi-Cell Example Conclusions Click Headings Above to View Content

Click Headings Above to View Content Great Time to Learn GTL Kriss Harris, SAS Specialists Limited; Richann Watson, DataRich Consulting Step 1 Why Learn GTL Use STATGRAPH template to define structure of the graph. proc template; define statgraph templatename; begingraph / <options>; layout type / <options>; … GTL SAS code … endlayout; endgraph; end; run; Layouts Begin / End Template Definition Begin / End Graph Specifications Single cell Begin / End Layout Specifications Specify Plot Type(s) and Other GTL Statements Multi-cell Layout Syntax 2-Step Process Step 2 Single-Cell Example Produce the graph by associating the data with the template. proc sgrender data = datasetname template = templatename; <optional SAS statements>; run; Specify Input Data Multi-Cell Example Associate Template Conclusions Click Headings Above to View Content

Click Headings Above to View Content Great Time to Learn GTL Kriss Harris, SAS Specialists Limited; Richann Watson, DataRich Consulting Example: Single Cell Layout With Nested Layout Why Learn GTL Layouts Single cell Multi-cell Click to see Code Layout Syntax 2-Step Process Single-Cell Example Multi-Cell Example Conclusions The data set used here is from the CDISC SDTM / ADaM Pilot Project and this was obtained from the CDISC website (CDISC, 2013). Click Headings Above to View Content

Click Headings Above to View Content Great Time to Learn GTL Kriss Harris, SAS Specialists Limited; Richann Watson, DataRich Consulting Example: Single Cell Layout With Nested Layout - Code Why Learn GTL proc template; define statgraph recrgrphg; mvar valuechi054 pchi054 valuechi081 pchi081 cmstat cmpvalue; begingraph / border = false; layout overlay / xaxisopts = (label = " " type = discrete) yaxisopts = (label = "Percentage of Patients with Dermatologic Event (%)" linearopts = (tickvaluesequence = (start=0 end=100 increment=25) viewmin=0 viewmax=100)); barchart x = TRTAN y = PCT_ROW / orient = vertical barlabel = true; layout gridded / columns = 4 order = rowmajor autoalign = (top); entry "Pearson's Chi-square Test Results"; entry " "; entry " "; entry "Cochran-Armitage Trend Test Results"; entry " Treatment Comparison"; entry "Value"; entry "P-value"; entry " Value = " cmstat; entry " Placebo - Low Dose"; entry valuechi054; entry pchi054; entry "P-value = " cmpvalue; entry " Placebo - High Dose"; entry valuechi081; entry pchi081; endlayout; endgraph; end; run; proc sgrender data = PCT template = recrgrphg; format TRTAN trt. PCT_ROW pctfmt.; Macro variables used to populate table Layouts Specify layout and necessary options Single cell Multi-cell Specify GTL statement to produce output Layout Syntax Nested layout to embed results table 2-Step Process Single-Cell Example Click to see Graph Multi-Cell Example Conclusions Click Headings Above to View Content

Click Headings Above to View Content Great Time to Learn GTL Kriss Harris, SAS Specialists Limited; Richann Watson, DataRich Consulting Example: Multi-Cell Layout Using Lattice Why Learn GTL Layouts Single cell Multi-cell Click to see Code Layout Syntax 2-Step Process Single-Cell Example Multi-Cell Example Conclusions The data set used here is from the CDISC SDTM / ADaM Pilot Project and this was obtained from the CDISC website (CDISC, 2013). Click Headings Above to View Content

Click Headings Above to View Content Great Time to Learn GTL Kriss Harris, SAS Specialists Limited; Richann Watson, DataRich Consulting Example: Multi-Cell Layout Using Lattice - Code Why Learn GTL proc template; define statgraph recrgrphg; mvar valuechi054 pchi054 valuechi081 pchi081 cmstat cmpvalue; begingraph / border = false; layout lattice / rows = 2 rowweights = (0.2 0.8); layout overlay / yaxisopts=(display=none) yaxisopts=(display=none); /* portion to embed table – 4 columns entered in row order */ layout gridded / columns = 4 order = rowmajor autoalign = (top); entry "Pearson's Chi-square Test Results"; entry " "; entry " "; entry "Cochran-Armitage Trend Test Results"; entry " Treatment Comparison"; entry "Value"; entry "P-value"; entry " Value = " cmstat; entry " Placebo - Low Dose"; entry valuechi054; entry pchi054; entry "P-value = " cmpvalue; entry " Placebo - High Dose"; entry valuechi081; entry pchi081; endlayout; layout overlay / xaxisopts = (label = " " type = discrete) yaxisopts = (labelsplitchar="#" labelfitpolicy=splitalways label = "Percentage of Patients with Dermatologic#Event (%)" linearopts = (tickvaluesequence = (start = 0 end = 100 increment = 25) viewmin = 0 viewmax =100)); barchart x = TRTAN y = PCT_ROW / orient = vertical barlabel = true; endgraph; end; run; Macro variables used to populate table Layouts Specify lattice layout and necessary options Single cell Specify layout for first individual cell in lattice. This layout will have a nested layout (i.e., layout nested within a layout nested within a layout) Multi-cell Layout Syntax Click to see Graph 2-Step Process Single-Cell Example Multi-Cell Example Specify layout for second cell in lattice. Within this layout specify any GTL statements needed. Conclusions Click Headings Above to View Content

Click Headings Above to View Content Great Time to Learn GTL Kriss Harris, SAS Specialists Limited; Richann Watson, DataRich Consulting Conclusion Why Learn GTL There are many types of plots with various types of options. The types of graphs that can be produced are limitless. We only touched a very small portion of what GTL is capable of. But with the tools to see how a graph can be broken down into different pieces and then combined together to create the final output, can make a task that may at one time seem impossible, possible. Layouts Single cell References Multi-cell “Graph Template Language Tip Sheet.” https://support.sas.com/rnd/app/ODSGraphics/TipSheet_GTL.pdf “Graph Template Modification Tip Sheet.” https://support.sas.com/rnd/app/ODSGraphics/TipSheet_GraphTemplateModification.pdf “SAS® 9.4 Graph Template Language: Reference, Fifth Edition.” http://support.sas.com/documentation/cdl/en/grstatgraph/69718/HTML/default/viewer.htm#p1rdkldsdjjotln1v88o3rdglyb7.htm “SAS® 9.4 Graph Template Language: User’s Guide, Fifth Edition.” http://documentation.sas.com/?docsetId=grstatug&docsetTarget=titlepage.htm&docsetVersion=9.4&locale=en Matange, Sanjay. Getting Started with the Graph Template Language in SAS®, SAS Institute (SAS Press, 2013). Layout Syntax 2-Step Process Single-Cell Example Contact Information Kriss Harris SAS Specialists Limited italjet125@yahoo.com http://www.krissharris.co.uk/ Richann Watson DataRich Consulting richann.watson@datarichconsulting.com http://www.datarichconsulting.com/ Multi-Cell Example Conclusions Click Headings Above to View Content

Single Cell Layout Examples Great Time to Learn GTL Kriss Harris, SAS Specialists Limited; Richann Watson, DataRich Consulting Single Cell Layout Examples Return to Single Cell Layout

Multi-cell Layout Examples Great Time to Learn GTL Kriss Harris, SAS Specialists Limited; Richann Watson, DataRich Consulting Multi-cell Layout Examples Return to Multi-Cell Layout More Multi-Cell Examples

Multi-cell Layout Examples Great Time to Learn GTL Kriss Harris, SAS Specialists Limited; Richann Watson, DataRich Consulting Multi-cell Layout Examples Return to Multi-Cell Layout