Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the acf domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/cr0ph/staging.phastar.com/wp-includes/functions.php on line 6260
Advanced Data Visualization in SAS | Phastar
Abstract dotted data landscape in pink and blue

Data Visualization: Customized Graphics and Combining Outputs

4 minute read

Published: May 24th, 2019

It has become easier to produce customised graphics in SAS and to produce reports that combine outputs from several different procedures. This means that refined outputs can be produced that allow more targeted monitoring of individual patients and populations of patients.

There is now a range of graphical elements that allow graphs in SAS to easily convey a range of information for the user to see several concepts at one time all in one picture.

This example shows a small subset of the graphical elements available.

Subject profile chart of total volume before and after the start of treatment, with a 20% reference band

In this case the user can quickly see several concepts of a subject’s results over time:

This graph is produced using PROC SGPLOT with the use of annotation dataset and statements within the PROC SGPLOT itself.

The text in the body of the graph comes from using the annotation and the position of these is data driven and will automatically change between subject. As well the arrow showing the width of the band was created with the new annotation function “arrow”.

The grey band comes from the band statement in PROC SGPLOT.

When designing a graph like this it is important to spend time talking to the user to find out how they go about making decisions from the study information. In particular what different pieces of information that contribute to the decision. Often they may take this information from many sources (e.g. existing graphs, tabular output, online reference).

Once you have a clearer understanding of this it is usually possible to design a graphical output that combines all this information in a way that the user can quickly see the information needed and the relationships between the various pieces of information.

Putting all the information needed for decision making on one page should not be restricted solely to graphical output from SAS. It is very simple now to combine tabular, graphics and user text and to position them anywhere you want on a page.

Subject profile chart of total volume before and after the start of treatment, with the underlying data table

The example above shows an example of what can be done using SAS ODS functionality. Using ODS LAYOUT and ODS REGION you can divide the page up into regions where output from SAS procedures will be directed. Below is some snippets of code which shows how this is done.

ods layout start width=8.49in height=8in;

ods region x = 2 in y = 1.95 in width = 6 in height = 6 in;

proc sgplot for graph on right

ods region x = 0 in y = 0.5 in width = 2 in height = 7.5 in;

proc report for table on left

ods region x = 2.5 in y = 0.75 in width = 5.5 in height = 1 in;

ods text for title

Related articles

Building a Successful Clinical Development Strategy with the Right Biometrics CRO 

Building a Successful Clinical Development Strategy with the Right Biometrics CRO 

November 9th, 2026 7 minute read

Clinical development teams are often familiar with outsourcing activities such as monitoring, project management, and...

Is the FSP Model Right for Your Clinical Program? 

Is the FSP Model Right for Your Clinical Program? 

November 6th, 2026 8 minute read

Clinical development teams are under constant pressure to deliver more with fixed budgets, tight timelines, and limit...

Meet the Team: Giles Partington, Consultant Statistician 

Meet the Team: Giles Partington, Consultant Statistician 

November 5th, 2026 4 minute read

In our “Meet the Team” series, we highlight the talented individuals who drive  Phastar’s success. Each t...