LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (September 2009, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 2 Sep 2009 14:52:01 -0700
Reply-To:     SAS_learner <proccontents@GMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         SAS_learner <proccontents@GMAIL.COM>
Subject:      Help with Gchart
Content-Type: text/plain; charset=ISO-8859-1

hello all, I am kind of relative new to gchart procedure and I have a task in hand. In the graph that been produced prtdiff = 0 for two subjects. In the code I am modifying if prtdiff >0 then it is represented in change from baseline on x- axis . The problem is that when I am trying to include the missing values I need the graph to represent the missing values ( 2 of them ) with the Equal spacing between the values. I am not sure what needed to changed in the following code to reflect what I needed. (sorry for the rather long code) Thanks for you time and help

ods listing close; ods rtf file="%qlowcase(&progname).rtf" style=styles.printer;

**obtain graph information:**; goptions gsfname=gout reset=all dev=gif gunit=pcT ftext=duplex ftitle=duplex simfont=duplex rotate=landscape htext=2 htitle=2 vorigin=0in horigin=0in xmax=9 inches ymax=7 inches;

**shape up the axes:**; pattern1 color=blue value=x5; pattern2 color=red value=l4; pattern3 color=green value=x1; pattern4 color=purple value=r4; pattern5 color=torquoise value=l4;

legend1 across=4 label=(height=2.0 "Dose") ;

axis1 label=(a=90 H=3 "SPD Percent Change") VALUE=(H=2) ORDER=(-130 TO 150 BY 20) WIDTH=1.5 MINOR=NONE ; axis2 label=(h=3 j=center a=0 'Subject') value= (t=1 '' t=2 '' t=3 '' t=4 '' t=5 '' t=6 '' t=7 '' t=8 '' t=9 '' t=10 '' t=11 '' t=12 '' t=13 '' t=14 '' t=15 '' h=.5) ; title1 "Figure 1 Change from baseline "; title2 "Safety population"; goptions FTEXT=duplex SIMFONT=duplex htext=2;

*Use the proc gchart method:*; PROC GCHART DATA=final; VBAR prtdiff / DISCRETE subgroup=trtgrp legend=legend1 raxis=axis1 maxis=axis2 coutline=black SUMVAR=prtdiff ; format trtgrp trtgrp.; run; quit;

options orientation=landscape; title; goptions reset=all; ods rtf close; ods listing;


Back to: Top of message | Previous page | Main SAS-L page