BookmarkSubscribeRSS Feed

Custom Task Tuesday: Tasks for Customizing SGPLOT Graphs

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

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-white.png

Missed SAS Innovate in Orlando?

Catch the best of SAS Innovate 2025 — anytime, anywhere. Stream powerful keynotes, real-world demos, and game-changing insights from the world’s leading data and AI minds.

 

Register now

SAS AI and Machine Learning Courses

The rapid growth of AI technologies is driving an AI skills gap and demand for AI talent. Ready to grow your AI literacy? SAS offers free ways to get started for beginners, business leaders, and analytics professionals of all skill levels. Your future self will thank you.

Get started

Article Tags