Developing Graphical Standards: A Collaborative, Cross-Functional Approach Mayur Uttarwar, Seattle Genetics, Inc., Bothell, WA

Similar documents
Paper: PO19 ARROW Statistical Graphic System ABSTRACT INTRODUCTION pagesize=, layout=, textsize=, lines=, symbols=, outcolor=, outfile=,

Creating Graphs Using SAS ODS Graphics Designer

Paper Some Tricks in Graph Template Language Amos Shu, AstraZeneca Pharmaceuticals, LP

Introduction to SAS/GRAPH Statistical Graphics Procedures

A Picture is worth 3000 words!! 3D Visualization using SAS Suhas R. Sanjee, Novartis Institutes for Biomedical Research, INC.

Creating and Customizing Graphics using Graph Template Language

Introduction to Statistical Graphics Procedures

PharmaSUG Paper SP09

%EventChart: A Macro to Visualize Data with Multiple Timed Events

Run your reports through that last loop to standardize the presentation attributes

Macros for creating a custom report of figures

separate representations of data.

The JMP Journal: An Analyst s Best Friend

Scientific Graphing in Excel 2013

Multiple Graphical and Tabular Reports on One Page, Multiple Ways to Do It Niraj J Pandya, CT, USA

From Getting Started with the Graph Template Language in SAS. Full book available for purchase here.

From Clicking to Coding: Using ODS Graphics Designer as a Tool to Learn Graph Template Language

Designing Personalized Experiences For Your Brand

Data Annotations in Clinical Trial Graphs Sudhir Singh, i3 Statprobe, Cary, NC

Easing into Data Exploration, Reporting, and Analytics Using SAS Enterprise Guide

Interactive Programming Using Task in SAS Studio

Stylish Waterfall Graphs using SAS 9.3 and 9.4 Graph Template Language

Arkansas Curriculum Framework for Computer Applications II

Scientific Graphing in Excel 2007

Great Time to Learn GTL

Reverse-engineer a Reference Curve: Capturing Tabular Data from Graphical Output Brian Fairfield-Carter, ICON Clinical Research, Redwood City, CA

ODS LAYOUT is Like an Onion

USING HASH TABLES FOR AE SEARCH STRATEGIES Vinodita Bongarala, Liz Thomas Seattle Genetics, Inc., Bothell, WA

A Macro to replace PROC REPORT!?

Features and Benefits

Key Features in ODS Graphics for Efficient Clinical Graphing Yuxin (Ellen) Jiang, Biogen, Cambridge, MA

SAS GTL: Improving Patients Safety and Study Efficiency Masaki Mihaila, Medivation, Inc, San Francisco, CA

Module I: Clinical Trials a Practical Guide to Design, Analysis, and Reporting 1. Fundamentals of Trial Design

PROMOTION DESIGN GUIDE. Premium Template. easypromosapp.com

Indenting with Style

Easy CSR In-Text Table Automation, Oh My

Square Peg, Square Hole Getting Tables to Fit on Slides in the ODS Destination for PowerPoint

PharmaSUG China 2018 Paper AD-62

A Juxtaposition of Tables and Graphs Using SAS /GRAPH Procedures

PharmaSUG 2015 Paper PO03

A SAS Macro for Generating Informative Cumulative/Point-wise Bar Charts

Creating Forest Plots Using SAS/GRAPH and the Annotate Facility

Building a Template from the Ground Up with GTL

Creating a Patient Profile using CDISC SDTM Marc Desgrousilliers, Clinovo, Sunnyvale, CA Romain Miralles, Clinovo, Sunnyvale, CA

Stylizing your SAS graph A needs-based approach

Solo 4.6 Release Notes

FILLPATTERNS in SGPLOT Graphs Pankhil Shah, PPD, Morrisville, NC

ebook library PAGE 1 HOW TO OPTIMIZE TRANSLATIONS AND ACCELERATE TIME TO MARKET

HydroOffice Diagrams

A Step-by-step guide to creating a Professional PowerPoint Presentation

WORD Creating Objects: Tables, Charts and More

Something for Nothing! Converting Plots from SAS/GRAPH to ODS Graphics

The Art of Overlaying Graphs for Creating Advanced Visualizations

How to Make Graphs with Excel 2007

Preparing the Office of Scientific Investigations (OSI) Requests for Submissions to FDA

Microsoft Certified Application Specialist Exam Objectives Map

Hacking FlowJo VX. 42 Time-Saving FlowJo Shortcuts To Help You Get Your Data Published No Matter What Flow Cytometer It Came From

TLFs: Replaying Rather than Appending William Coar, Axio Research, Seattle, WA

An Alternate Way to Create the Standard SDTM Domains

ODS/RTF Pagination Revisit

Setup Mount the //geobase/geo4315 server and add a new Lab2 folder in your user folder.

Kaplan-Meier Survival Plotting Macro %NEWSURV Jeffrey Meyers, Mayo Clinic, Rochester, Minnesota

PharmaSUG Paper PO12

Publication-quality figures with Inkscape

How to write ADaM specifications like a ninja.

Interactive Graphs from the SAS System

Clip Extreme Values for a More Readable Box Plot Mary Rose Sibayan, PPD, Manila, Philippines Thea Arianna Valerio, PPD, Manila, Philippines

Combining TLFs into a Single File Deliverable William Coar, Axio Research, Seattle, WA

JMP Clinical. Release Notes. Version 5.0

Desktop Studio: Charts. Version: 7.3

CHAPTER 4: MICROSOFT OFFICE: EXCEL 2010

SAS (Statistical Analysis Software/System)

This paper describes a report layout for reporting adverse events by study consumption pattern and explains its programming aspects.

SAS (Statistical Analysis Software/System)

Information Visualization

Getting Started with the SGPLOT Procedure

Professional outputs with ODS LATEX

Real Time Clinical Trial Oversight with SAS

Customizing a Multi-Cell Graph Created with SAS ODS Graphics Designer Yanhong Liu, Cincinnati Children s Hospital Medical Center, Cincinnati, OH

SAS/GRAPH Introduction. Winfried Jakob, SAS Administrator Canadian Institute for Health Information

Desktop Studio: Charts

Create and edit word processing. Pages.

ODS GRAPHICS DESIGNER (Creating Templates for Batchable Graphs)

Visio Core Essentials

POWERPOINT Build a Presentation to Remember

Using JMP Visualizations to Build a Statistical Model George J. Hurley, The Hershey Company, Hershey, PA

PharmaSUG Paper PO10

It s Not All Relative: SAS/Graph Annotate Coordinate Systems

When Simpler is Better Visualizing Laboratory Data Using SG Procedures Wei Cheng, Isis Pharmaceuticals, Inc., Carlsbad, CA

Effective Forecast Visualization With SAS/GRAPH Samuel T. Croker, Lexington, SC

Introduction Accessing MICS Compiler Learning MICS Compiler CHAPTER 1: Searching for Data Surveys Indicators...

Multiple Forest Plots and the SAS System

Working with Composite Endpoints: Constructing Analysis Data Pushpa Saranadasa, Merck & Co., Inc., Upper Gwynedd, PA

Tips to Customize SAS/GRAPH... for Reluctant Beginners et al. Claudine Lougee, Dualenic, LLC, Glen Allen, VA

Excel Level 1: Beginner. Get started in Excel. Look good with easy formatting. Set out your first Excel calculations. Increase your efficiency

Paper SIB-096. Richard A. DeVenezia, Independent Consultant, Remsen, NY

CounselLink Reporting. Designer

Figure 1. Table shell

Error-Bar Charts from Summary Data

Occupant Injury Criteria, a Complete Solution for the Evaluation of Occupant and Structural, Simulation and Physical Test Results in META

Transcription:

PharmaSUG 2014 - DG03 Developing Graphical Standards: A Collaborative, Cross-Functional Approach Mayur Uttarwar, Seattle Genetics, Inc., Bothell, WA ABSTRACT Murali Kanakenahalli, Seattle Genetics, Inc., Bothell, WA A picture is worth a thousand words: a quote proven by the fact that graphs are increasingly used in reporting clinical trial data. Conventionally, SAS Graph procedures in conjunction with annotation datasets have been used to create graphs, but recently SAS Graph Template Language (GTL) is gaining ground. GTL is very powerful in its ability to allow the building of complex and intricate graphs using a structured approach. However, the key factor in leveraging the full potential of GTL and maximizing program efficiency is to establish graphical standards. This paper addresses the need for graphical standards, showcases a collaborative approach with cross-functional partners to identify & standardize common graph attributes, and provides one style template & one graph template that can support multiple graph types. KEYWORDS Graph Template Language (GTL), Graphical Standards, Style Template, Graph Template. INTRODUCTION Graphs play a major role in data analysis, and it can be challenging to achieve a consistently high level of quality across numerous graphs produced in support of multiple presentations and submissions of clinical trial data. We witnessed that, due to a lack of graphical standards, there was an excessive waste of valuable resources, like time and manpower, put forth by the affected teams within our organization. To resolve the issue, a committee involving key stakeholders was created with the purpose of investigating the issue and finding a solution. Through multiple discussions and testing various options, it was determined that developing viable standards for the graphical outputs could potentially streamline the process and reduce resource consumption. The purpose of this paper is to illustrate the process of how the standards were developed in a collaborative and cross functional approach, and show one style template and one graph template that can be used to support multiple graph types. WHY WE NEED TO STANDARDIZE? Graphs are an integral part of data visualization and are complicated to create based on the amount and nature of the data to be presented. Despite the efforts of the programmers to create the best possible graphs, there is usually a need for extensive further editing of the graphs. The team that assembles the final programming outputs, including the graphs, and prepares the final submission bears the brunt of this process. The editing process for the graphics editors is particularly laborious since they need to edit each graph individually using external software, which results in the editing process being quite time consuming. It is beneficial to come up with a set of graphical standards that works in the best interest of the medical writing team, the programming team and other end users of the graphical outputs. SELECTION OF STAKEHOLDERS Graphs are used mainly for publications, presentations, regulatory submissions and clinical study reports in pharmaceutical companies. Our goal was to involve key stakeholders from cross-functional team to create a set of graphical standards that would work for all parties. The key stake holders include clinical programmers, medical writers and statisticians. The clinical programming team initiated and led this project; they play a crucial role via programming the plots and implementing the standards. Statisticians were included in the project team as they lead design of the graphs. Medical writers were involved as they are the main recipients of the graphs, and technical editing of the graphs is performed within that group. 1

APPROACH AND PROCESS The teams came up with a set of standard attributes that all graphs were expected to have. It is noteworthy to say that not all graphs can have all identical attributes, and hence the common ground was identified and some attributes such as colors, line styles, symbols, and fonts were thought to be appropriate to standardize across multiple graphs. It was also expected that, if needed, the graphs should be easily editable, and thus all graphs should be created as vector plots. SAS Graphic Template Language (GTL) is highly flexible and easy to implement, and thus was selected as the standard approach to creating graphs. There are two components of GTL; the style template and the graph template. In this paper, we are emphasizing the style template that we attempted to use as a basis for standardizing the graphs along with the graph template used to create a variety of graphs. It is often useful to create graphs with specific visual characteristics that do not have to be hard coded into the GTL for every graph created. For example, the settings for the following graph features can be easily modified: Font or font sizes Line or marker properties Colors Because the default properties of nearly all GTL appearance-related options are obtained from the existing style, we attempted to customize the style template in such a way that the required look and feel could be enforced on multiple graphs; however, we did not want to eliminate the user interaction while creating a standard style template. To fully customize the graph in terms of the subgroups, headers, footers, axis labels etc., that possesses the standard attributes, we expected that the user provides the number of subgroups that would be presented on the graph. In practice, there could be a significant variety of attributes that can be standardized across multiple graphs, but for the sake of simplicity, let s assume that any 4 different types are required for the lines, marker symbols, and colors of the lines, fill colors and contrast colors. The standard graphs are expected to have all subgroups represented within these 4 different types of attributes. There could be N number of subgroups and, keeping this in mind, we had to develop a strategy to cycle through the limited number of attributes for all the subgroups in order to produce a standard graph. A style template was created using a SAS macro for which the user provides the total number of subgroups. In the code displayed below, the macro parameter subgroups captures the total number of subgroups desired by the user and any four different styles, marker symbols, line/fill colors and contrast colors are assigned to the macro variables line, marker, color and contrastcol respectively. %do i=1 %to &subgroups.; style GraphData&i. from GraphData&i./ linestyle = %scan(&line.,%sysfunc(mod(%sysfunc(ceil(%sysevalf(&i./4))),4))) markersymbol = %scan(&marker.,%sysevalf(%sysfunc(mod(%sysevalf(&i.-1),4))+1)) color = %scan(&color.,%sysevalf(%sysfunc(mod(%sysevalf(&i.-1),4))+1)) %end; This partial style template was then used to create a scatter plot and a line plot. The plots are based on simulated data and are created for the sole purpose of demonstration. The partial graph templates for the given two plots are given as: Scatter plot: layout overlay /yaxisopts=(/* Standard attributes for the Y-Axis */) xaxisopts=(/* Standard attributes for the X-Axis */) cycleattrs=true; scatterplot x=x_variable y=y_variable /group=group_variable name='legend_name'; Line plot: layout overlay /yaxisopts=(/* Standard attributes for the Y-Axis */) xaxisopts=(/* Standard attributes for the X-Axis */); seriesplot x=x_variable y=y_variable /group=group_variable name='legend_name'; 2

From the scatter plot shown in figure 1 (a), it can be seen that the four types of marker symbols with four different colors are produced in ascending order of the group numbers. Since there are no lines involved in the scatter plot, specifying the line type in the style template did not make any difference. A user input in terms of axes labels and the labels for the legend was incorporated while developing these graphs. In the case of the line plot in figure 1 (b), the marker symbols represent the data points and these points are connected by the lines. Since the line type for the first four subgroups is 1 (i.e. a regular line), the differing attributes among the subgroups are the marker symbols and the colors. 100 40 75 Y-Axis Label 50 Y-Axis Label 30 20 25 10 0 10 20 30 40 50 X-Axis Label (a) 1 2 3 4 5 6 7 8 9 10 X-Axis Label (b) Figure 1. (a) Scatter Plot and (b) Line Plot with Standard Graphics Attributes Applying the graphics standards to produce a survival plot (e.g. Kaplan-Meier curve) for four subgroups required a slightly different approach, since the plot involves a combination of a step plot and a scatter plot. The lines or steps represent the probability of survival for different subgroups and the marker symbols represent the censored observations. It can be noted that the marker symbols don t represent the interpolation points for the line in this case, but rather are overlaid on the line; hence we had to update the style template to accommodate this change. The rest of the contents of the template remained the same. The marker symbols are considered as a different set of subgroups; in this sense, each line plot has its own marker symbol for the censored observations. The Kaplan-Meier curves are shown in figure 2. Style Template: %do i=1 %to &subgroups.; style GraphData&i. from GraphData&i./ linestyle = %scan(&line.,%sysfunc(mod(%sysfunc(ceil(%sysevalf(&i./4))),4))) color = %scan(&color.,%sysevalf(%sysfunc(mod(%sysevalf(&i.-1),4))+1)) style GraphData%sysevalf(&i.+&subgroups.) from GraphData%sysevalf(&i.+&subgroups.)/ markersymbol = %scan(&marker.,%sysevalf(%sysfunc(mod(%sysevalf(&i.-1),4))+1)) %end; Graph Template: layout overlay / yaxisopts=(/* Standard attributes for the Y-Axis */) xaxisopts=(/* Standard attributes for the X-Axis */); stepplot x=x_variable1 y=y_variable1 / group=group_variable1 name='legend_name1'; scatterplot x=x_variable2 y=y_variable2/ group=group_variable2 name='legend_name2'; 3

Based on figure 1 and figure 2, it was observed that a single style template could not be applied to assign the standard attributes to all the graphs, but it is anticipated that a major portion of graphs could be covered. Through GTL it was easy to create the majority of graphs in vector format (.emf format) so that the graphs could be edited in other software products like Microsoft PowerPoint if further enhancements were needed. 100 Survival Probability 80 60 40 20 0 Censored Subjects: Censored Subjects: Censored Subjects: Censored Subjects: 0 4 8 12 16 20 24 28 32 36 40 44 48 52 56 60 64 Time Variable Figure 2. Kaplan-Meier Curves with Standard Graphics Attributes ISSUES AND LEARNINGS: While trying to standardize the graphs, we faced a few issues which are explained below: Creating Border around pattern bars: SAS lacks standard options within GTL for creating a border around pattern filled bars. To overcome this issue we created a standalone bar chart with a border and overlayed the one with patterns. Example code to achieve this end result is displayed below. barchartparm y=_y x=_x /barwidth=0.5 index=_idx group=_grp name='trt' fillattrs=(color=white) outlineattrs=(color=black); barchartparm y=_y x=_x / display=(fillpattern) barwidth=0.5 index=_idx group=_grp skin=modern name='trt' FILLPATTERNATTRS=(COLOR=black ); Graph size versus font size: SAS GTL allows creating graphs based on templates. There is a correlation between the fonts within the graph and the size of the graph. Standardizing the graph size and font size was important to make graphs appear on one page and to make the legend appear within the allocated graph size. For a pre-defined page size, we used a trial and error method to optimize the design width and height, as well as the appropriate font sizes. Vector graphics format and transparency: Vector based graphics are more malleable than raster images. Thus, they are much more versatile, flexible and easy to use and edit. The most obvious advantage of vector images over raster graphics is they are quickly and perfectly scalable. Some medical writers prefer graphs to be delivered in vector graphics format and ODS destinations such as RTF or PDF. EMF image format is the only vector graphics format supported by ODS RTF. However, there is a draw back; GTL cannot apply transparency to vector graphics in EMF image format. SAS automatically creates the graph 4

in PNG raster format when transparency is applied. In our process we opted not to use transparency in the graphs we create. Using same graphdata statements for overlay plots: Kaplan Meyer plots usually have scatter plots to represent the censored observations and step plots to represent the probabilities of survival for multiple subgroups. Usually marker symbols and line style options can be defined within a single graphdata statement. When we used the same graphdata statement defining the line styles and marker symbols, the presentation of the symbols in the graph didn t follow the options as defined in the graphdata statement. We decided to define the marker symbols and line styles in separate graphdata statements. IMPACT OF CHANGES Even though the implementation of graphical standards has streamlined the process of developing a variety of graphs, there are some challenges that need to be overcome. The impact on the clinical programming team is quite visible. The number of requests to modify graphs has been reduced as programmers now use the standard style template. Study programmers are expected to understand the templates and customize them per the study requirement or submission needs, and as a result enhance the applicability of the templates. In this process the efficiency of the cross functional teams increased as a result of a minimal amount of time spent on enhancing the graphs and putting less effort into bringing all the variety of graphs from all different studies under one standard format. FUTURE SCOPE Going forward, we want to identify the common statements within the graph template and style template for different graphs. We can minimize the work of the programmers by putting the common statements under globally defined macros. Instead of writing a whole graph template, we can call a stored macro. In this way it will be easy to bring standards and uniformity. CONCLUSION As graphs continue to play a major role in the analyses supporting clinical trials, there is a need to streamline the process of creating graphs within an organization so that programming and other relevant cross functional teams can spend minimal resources editing graphs or enhancing the visual attributes of the graphs. We have shown that a cross functional team establishing standards that align with the stakeholders interests can reduce the programming and medical writing resources needed to create commonly used graphs. ACKNOWLEDGMENTS We would like to thank Rajeev Karanam and Gordon Fancher for actively participating, supporting and guiding us throughout the process of developing the graphical standards. We received helpful comments from them, while this paper was written and we appreciate their crucial suggestions. RECOMMENDED READING SAS/GRAPH 9.2 Graph Template Language User s Guide CONTACT INFORMATION Your comments and questions are valued and encouraged. Contact the authors at: Mayur Uttarwar Seattle Genetics, Inc. 21823-30th Drive S.E. Bothell, WA 98021 425-527-2284 muttarwar@seagen.com Murali Kanakenahalli Seattle Genetics, Inc. 21823-30th Drive S.E. Bothell, WA 98021 425-527-2842 mkanakenahalli@seagen.com SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. indicates USA registration. Other brand and product names are trademarks of their respective companies. 5