Date: Tue, 14 Jun 2005 14:08:51 -0700
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "David L. Cassell" <cassell.david@EPAMAIL.EPA.GOV>
Subject: Re: gchart, midpoint range?
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;
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;
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.
David Cassell, CSC
Senior computing specialist