BookmarkSubscribeRSS Feed

Custom Task Tuesday: Clinical Profile Graph with Discrete Axes

Started ‎05-28-2019 by
Modified ‎05-28-2019 by
Views 935

 

medium.jpgThis post is part of a mini-series leading up to PharmaSUG 2019 where 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. Each task allows users to customize a different clinical graph from Sanjay Matange’s posts on Graphically Speaking.

 

This week on Custom Task Tuesday we will look at a task for creating and customizing this clinical profile line chart: 

plot 3.png

Here's what the task looks like:

 

task 2.png

 

Tabs and Groups

While last week's task featured all of the options on one tab, this week's task divides up the controls into DATA and APPEARANCE. Dividing controls into tabs is standard for built-in SAS Studio tasks. Standard tab names are DATA, OPTIONS, OUTPUT, and APPEARANCE. The INFORMATION tab is always created automatically from the Registration section of the task.

 

Within the tabs, controls are structured into collapsible groups. On the DATA tab are DATA and ROLES groups, which are standard names for built-in tasks. On the APPEARANCE tab, there is a GRAPH OPTIONS group.

 

The UI section of a task shows the break-down of controls within groups within containers (tabs). The UI section for the Lipid Profile task is shown below:

<UI>
    <Container option="DATATAB">
        <Group option="DATAGROUP" open="true">
	    <DataItem data="DATASOURCE"/>
	</Group>
	<Group option="ROLESGROUP" open="true">
	    <RoleItem role="GROUPVAR"/>
	    <RoleItem role="DAYVAR"/>
	    <RoleItem role="MEDIANVAR"/>
	    <RoleItem role="LCLVAR"/>
	    <RoleItem role="UCLVAR"/>
	</Group>
    </Container>
    <Container option="APPEARANCETAB">
	<Group option="GROUPGRAPH" open="true">
		<OptionItem option="textTITLE1"/>
	    <OptionChoice option="comboTHEME">
		<OptionItem option="inspire"/>
		<OptionItem option="illuminate"/>
		<OptionItem option="grayscale"/>
		<OptionItem option="pastel"/>
		<OptionItem option="bright"/>
		<OptionItem option="dark"/>
		<OptionItem option="default"/>
	    </OptionChoice>
	    <OptionChoice option="comboLEGENDLOC">
		<OptionItem option="inside"/>
		<OptionItem option="outside"/>
	    </OptionChoice>
	    <OptionChoice option="comboLEGENDPOS">
		<OptionItem option="bottom"/>
		<OptionItem option="bottomleft"/>
		<OptionItem option="bottomright"/>
		<OptionItem option="left"/>
		<OptionItem option="right"/>
		<OptionItem option="top"/>
	        <OptionItem option="topleft"/>
                <OptionItem option="topright"/>
            </OptionChoice>
            <OptionItem option="labelORIENTATION"/>
            <OptionItem option="radioAuto"/>
            <OptionItem option="radioHorizontal"/>
            <OptionItem option="radioVertical"/>
        </Group>
    </Container>
</UI>

 

Check out the Task Tuesday GitHub

Download the lipid profile task 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-28-2019 01:50 PM
Updated by:

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

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