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 (October 2007, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 23 Oct 2007 16:28:44 -0400
Reply-To:     "Richard A. DeVenezia" <rdevenezia@WILDBLUE.NET>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "Richard A. DeVenezia" <rdevenezia@WILDBLUE.NET>
Organization: Internet News Service
Subject:      Re: Side-by-Side Bar Graph
Comments: To: sas-l@uga.edu

OR Stats wrote: > Hello: Does anyone know how to put sets of bar graphs on the same x > and y scale? I believe this can be done easily in softwares like > Prism Graph Pad. Staying w/i SAS framework is ideal however. Thank > you :)

There are literally dozens of variations of a charts that can be produced from just a handful of options.

Is this the one you want ?

data foo; do set = 1 to 3; do mid = 1 to 5; base+1; do nobs = 1 to 10; y = base + ranuni(1234) - 0.5; cat = floor(1 + 3*ranuni(1234)); output; end; end; end; run;

ods listing;

goptions htext=6pt;

proc gchart data=foo; vbar mid / discrete group=set subgroup=cat sumvar=y type=mean mean; run;

The G100 options is something to look at also.

-- Richard A. DeVenezia http://www.devenezia.com/


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