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 (May 2004, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Thu, 13 May 2004 11:44:50 -0400
Reply-To:     "Richard A. DeVenezia" <radevenz@IX.NETCOM.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "Richard A. DeVenezia" <radevenz@IX.NETCOM.COM>
Subject:      Re: Left and Right axis

Edward Gano wrote: > We have been able to print a left and right axis in PROC GPLOT. > > Can this be done in PROC GCHART (VBAR). > > We have a group with high numbers on one side of the graph. > The other side has low numbers. > > The high side dwarfs the low side and we have been requested > to provide a different axis on the right side of the graph.

GCHART has one axis.

So, you have a visual image that aims to demonstrate the differences in two groups... and you want the differences to not be so apparent ? Perhaps not a good idea, but you would have to preprocess the data to change the values of what is being charted. Instead of tweaking the visualization, perhaps just a simple tabulation listing the numbers (with traffic highlighting) is sufficient. Let the audience supply their own internal visualization of the groups differences.

Definitely state the conditions of the scaling, otherwise you are effectively, um, err, uh, lying. You would have to annotate right edge of procedure output frame to indicate scaling effect.

data foo; retain seed 20040513; do group = 100, 10; do sub = 'a', 'b', 'c'; do count = 1 to 100; y = group + group/2 * rannor(seed) ; output; end; end; end; run;

ods listing; goptions ftext='Arial';

proc gchart; vbar sub / group=group subgroup=sub type=mean sumvar=y width=10; run;

data foo2; set foo; if group=10 then yscaled = y * 8; else yscaled = y; run;

proc gchart; vbar sub / group=group subgroup=sub type=mean sumvar=yscaled width=10; run;

-- Richard A. DeVenezia http://www.devenezia.com/downloads/sas/samples


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