Our World Statistics Day conversations have been a great reminder of how much statistics can inform our lives. Do you have an example of how statistics has made a difference in your life? Share your story with the Community!
Choose Language Hide Translation Bar
Highlighted
Level III

## How to change range of Group Y data in Graph Buildfer

Group Y in a Graph Builder chart has grouped the data as ... 8-16, 16-24.... etc (Picture attached) whereas I want 20 to be a cut-off so that the effect can be shown of values <20 and >20. Is there a way to force JMP 13.2.1 to change the range, please? I have tried changing the 'Number of Levels..' but couldn't get 20 as the end of a range on Group Y.

Thanks

5 REPLIES 5
Highlighted
Super User

## Re: How to change range of Group Y data in Graph Buildfer

I believe the easiest way to do this is to create a new column using Recode that groups the  "Number of Levels" into exactly the groupings you want.  To use Recode, you will have to temporally change the Number of Levels column in to a character column, while you do the recoding since you will want the grouping values to be displayed as something like ">15 <= 20".   Here is a simple example using the Big Class sample data table, where I have recoded the Height column into the groupings I want.

Jim
Highlighted
Level III

## Re: How to change range of Group Y data in Graph Buildfer

Thanks Nelson.

I could manually recode the data, but the manual recoding may be difficult for big data. As a different approach, I copied the column and tried to create a formula to create the groups, but the formula is only partially working for some reason (screenshot enclosed for BigClass data). Not sure if there is some mistake in the formula or if this approach is not possible. Thanks

Highlighted
Staff

## Re: How to change range of Group Y data in Graph Buildfer

``````If( :height < 55,
"50-55",
If( :height < 60,
"55-60",
If( :height < 65,
"60-65",
"65-70"
)
)
)``````

Not sure exactly why your formula doesnt work but this simpler formula should do the job.

Regards,

Phil

Highlighted
Level III

## Re: How to change range of Group Y data in Graph Buildfer

Thanks Phil.

The formula also worked after some correction (enclosed). I guess it was the 'first day at work' effect earlier.

Regards

Highlighted
Super User

## Re: How to change range of Group Y data in Graph Buildfer

A further simplification of the formula is:

``````If(
:height < 55, "50-55",
:height < 60, "55-60",
:height < 65, "60-65",
"65-70"
)``````
Jim
Article Labels

There are no labels assigned to this post.