BookmarkSubscribeRSS Feed

Custom Task Tuesday: Tasks for Customizing SGPLOT Graphs

Started ‎05-14-2019 by
Modified ‎05-15-2019 by
Views 1,673

medium.jpgOver the next several #CustomTaskTuesdays, leading up to PharmaSUG 2019, I will be releasing tasks for customizing SGPLOT graphs. The graphs used will all be clinical graph examples from Sanjay Matange’s posts on Graphically Speaking.

 

At PharmaSUG, I will be leading a hands-on training titled: Developing Custom SAS Studio Tasks for Clinical Graphs. For those who can't attend in person, I'll be posting about all of the tasks here on SAS Communities. 

 

Clinical Graphs from Graphically Speaking

These plots will be used from Sanjay’s blog to create graph customizing tasks. Over the next four weeks I will release posts for tasks that will allow users to create and customize each of these graphs!

 

Injection Site Reaction Grouped Bar Chart

plot 1.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Change in Tumor Size Waterfall Chart

plot 2.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Lipid Profile Line Chart

plot 3.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Survival Plot

plot 4.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Tasks for Clinical Graphs

There are many common changes users want to make to graphs, all of which we can build in as parameters for Custom Tasks using specific controls. These controls will be used in the upcoming posts of tasks for clinical graph creations. Let's take a look at the common changes users want to make to graphs and the task controls that go with them. 

 

Choosing different data

3.png

 

Data set selector

 

4.png

 

Role (variable) selector

 

Changing the color scheme

5.png

 

Individual color selector

6.png

 

Combo box (drop down) populated with color themes

 

Creating a new title

7.png

Text input boxes

 

Changing legend attributes

8.png

 

Radio button with legend orientations

 

9.png

 

Drop downs for legend location and position

 

The upcoming posts will focus on the task creation for SGPLOT code. If you're interested in learning more about SGPLOT, here are some resources:

PROC SGPLOT Documentation

PROC SGPLOT Tip Sheet

 

Check out the Task Tuesday GitHub

This post doesn't have a task to download, but check out previous tasks on the Task Tuesday GitHub.

Take Me to GitHub!

Join the Conversation on Twitter

 

Twitter_bird_logo_2012.svg.pngUse the hashtag #CustomTaskTuesday and tweet @OliviaJWright with your Custom Task comments and questions!

Version history
Last update:
‎05-15-2019 09:33 AM
Updated by:

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

Free course: Data Literacy Essentials

Data Literacy is for all, even absolute beginners. Jump on board with this free e-learning  and boost your career prospects.

Get Started

Article Tags