cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
JMP is taking Discovery online, April 16 and 18. Register today and join us for interactive sessions featuring popular presentation topics, networking, and discussions with the experts.
Choose Language Hide Translation Bar
abdul_saqib
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
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
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

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
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

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