Date: Fri, 9 Feb 2007 23:02:47 -0500
Reply-To: Arthur Tabachneck <art297@NETSCAPE.NET>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Arthur Tabachneck <art297@NETSCAPE.NET>
Subject: Re: Basic proc gchart question
Craig,
The example found at http://xrl.us/uqwb might go a bit farther than you
want, namely with html output and drill-down capabilities, but it may
provide what you are seeking.
Art
--------
On Thu, 8 Feb 2007 14:47:03 +1000, Craig Hansen <C.Hansen@UQ.EDU.AU> wrote:
>Hi All
>
>I am wanting to create a vbar for different age groups (5 discrete
>groups) and group it by gender, but I don't want the vbars for the
>grouping variable to be in two separate groups on the maxis, I want the
>male/female vbars to be next to each other for each of the different age
>groups. I realise this is a basic question but I cannot find how to do
>this in the help files or on the net - any help would be appreciated.
>
>Here is my code at the moment.
>
>goptions reset=all ftext=swiss htext=1.3 device=gif gsfname=graph1
>fontres=presentation;
>axis1 label = (angle=90 c=black h=1.6 'Percent');
>axis2 label = (h=1.6 'Age') value=(a=60 rotate=0 f='arial/bold');
>pattern1 colour=pab value=solid;
>pattern2 colour=vpab value=solid;
>proc gchart data=a;
>vbar3d agegroup/type=percent discrete group=gender raxis=axis1
>maxis=axis2 patternid=group;
>run; quit;
>
>
>TIA
>Craig
|