LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (June 2005, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 14 Jun 2005 14:08:51 -0700
Reply-To:     cassell.david@EPAMAIL.EPA.GOV
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "David L. Cassell" <cassell.david@EPAMAIL.EPA.GOV>
Subject:      Re: gchart, midpoint range?
In-Reply-To:  <200506141834.j5EIYhHi010773@listserv.cc.uga.edu>
Content-type: text/plain; charset=US-ASCII

Ya Huang <ya.huang@AMYLIN.COM> wrote: > When gchart is used to draw histogram for a continues variable > , gchart will automatically calculate the midpoint. > Is there a way I can get the range for each midpoint? For example, > in the following code, I see 4 midpoints, I basically want to know > who falls in 60, who falls in 90 etc. > > proc gchart data=sashelp.class; > vbar weight / level=4; > run;

Well, there's a way to get the ranges to print.. but then you don't see the midpoints. If you change your code to:

proc gchart data=sashelp.class; vbar weight / level=4 RANGE; run;

This cause the x-axis to show the ranges for each of the bars, *instead* of the midpoints. If you want both, then you'll have to do some gyrations.

Oh, and if a value hits on a border between two bars, I think that it gets put into the higher category.

HTH, David -- David Cassell, CSC Cassell.David@epa.gov Senior computing specialist mathematical statistician


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