BookmarkSubscribe
Choose Language Hide Translation Bar
abdul_saqib
Community Trekker

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

 

 

 

0 Kudos
5 REPLIES 5
txnelson
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.

recode1.PNGrecode2.PNG

Jim
abdul_saqib
Community Trekker

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

0 Kudos
phil_kay
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

abdul_saqib
Community Trekker

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

0 Kudos
txnelson
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