Date: Mon, 2 Feb 2004 13:16:44 -0500
Reply-To: "Elmaache, Hamani" <Hamani.Elmaache@CCRA-ADRC.GC.CA>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Elmaache, Hamani" <Hamani.Elmaache@CCRA-ADRC.GC.CA>
Subject: GRAPH Problem
Content-Type: text/plain; charset="iso-8859-1"
Hi Sas-users.
My problem may be simple for same "expert in SAS Graph".
When I run the following program, I get in the cell "AB /(0:115-2:15)" 5
case ;
but It should be 11. Can someone correct what's wrong?
Here the data and my code. Run it and see the graph.
Thanks tring to help.
/************************/
data time0;
attrib office2 length=$4;
attrib time format=time5. format=time5.;
input office2 $4. time time5. COUNT PERCENT;
cards;
AB 0:15 5 1.7730496454
AB 1:15 6 2.1276595745
AB 2:15 5 1.7730496454
AB 3:15 6 2.1276595745
AB 4:15 1 0.3546099291
AB 5:15 3 1.0638297872
AB 6:15 3 1.0638297872
AB 7:15 4 1.4184397163
AB 8:15 4 1.4184397163
AB 9:15 6 2.1276595745
AB 10:15 2 0.7092198582
AB 11:15 4 1.4184397163
AB 12:15 4 1.4184397163
AB 13:15 2 0.7092198582
AB 14:15 3 1.0638297872
AB 15:15 2 0.7092198582
AB 16:15 3 1.0638297872
AB 17:15 5 1.7730496454
AB 18:15 4 1.4184397163
AB 19:15 3 1.0638297872
AB 20:15 3 1.0638297872
AB 21:15 2 0.7092198582
AB 22:15 3 1.0638297872
AB 23:15 4 1.4184397163
BL 0:15 9 3.1914893617
BL 1:15 4 1.4184397163
BL 2:15 5 1.7730496454
BL 3:15 5 1.7730496454
BL 4:15 7 2.4822695035
BL 5:15 5 1.7730496454
BL 6:15 3 1.0638297872
BL 7:15 3 1.0638297872
BL 8:15 5 1.7730496454
BL 9:15 5 1.7730496454
BL 10:15 4 1.4184397163
BL 11:15 4 1.4184397163
BL 12:15 6 2.1276595745
BL 13:15 5 1.7730496454
BL 14:15 5 1.7730496454
BL 15:15 4 1.4184397163
BL 16:15 5 1.7730496454
BL 17:15 5 1.7730496454
BL 18:15 5 1.7730496454
BL 19:15 6 2.1276595745
BL 20:15 8 2.8368794326
BL 21:15 7 2.4822695035
BL 22:15 6 2.1276595745
BL 23:15 8 2.8368794326
PH 0:15 2 0.7092198582
PH 3:15 6 2.1276595745
PH 4:15 7 2.4822695035
PH 5:15 9 3.1914893617
PH 6:15 7 2.4822695035
PH 7:15 5 1.7730496454
PH 8:15 3 1.0638297872
PH 9:15 4 1.4184397163
PH 10:15 2 0.7092198582
PH 11:15 1 0.3546099291
PH 12:15 3 1.0638297872
PH 14:15 2 0.7092198582
PH 15:15 3 1.0638297872
PH 16:15 2 0.7092198582
PH 17:15 2 0.7092198582
PH 18:15 4 1.4184397163
PH 19:15 1 0.3546099291
PH 20:15 1 0.3546099291
PH 21:15 1 0.3546099291
PH 22:15 1 0.3546099291
;
run;
goptions reset=global gunit=pct border cback=white
colors=( green blue red violet maroon black lime gray orange)
ctext=black
ftitle=swissb ftext=swiss htitle=6 htext=3 VPOS=70 HPOS=200;
proc gchart data=time0;
block time/group=Office2 midpoints='00:15't to '23:15't by '02:00't
freq=count noheading ctext=swiss
patternid=midpoint ;
run;
quit;
/**************************/
|