Subscribe Bookmark RSS Feed

Fit Group and By

Highlighted
vince_faller

Super User

Joined:

Mar 17, 2015

Is Fit Group supposed to actually force by graphs inside it to respect by columns?  It seems like the graphs are just being duplicated with a header that says Fit Group age=12, sex=M.  

 

names default to here(1);
dt = open("$SAMPLE_DATA\Big Class.jmp");
fg = dt << Fit Group(
	dt << OneWay( Y( :weight, :height ), X( :name ) ), 
	<<{Arrange in Rows(2)},
	By(:age, :Sex)
); //I like the way this looks but it doesn't seem to actually respect the By in the graphs

//this one respects the by but puts the groupings in each graph which is pretty ugly
//and doesn't arrange in rows
g1 = dt << Oneway( Y( :weight, :height ), X( :name ), By(:age, :Sex) )
2 REPLIES
mjoner

Community Trekker

Joined:

Jun 23, 2011

Are you looking for something closer to this?

 

g2 = dt << Fit Group( Oneway( Y( :weight, :height ), X( :name ), By(:age, :Sex) ), << Arrange in Rows(2));
vince_faller

Super User

Joined:

Mar 17, 2015

I've been able to do that.  The problem with that is that the description of the by is on each graph. Also it only creates one fit group.  I'd like to have 1 fit group per by with only the corresponding graphs in it.   I have somewhere north of 10 columns in the by so it gets really ugly.  My real question is, why have fit group even have a by if it doesn't really do anything.  Or I may be missing something.