cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Browse apps to extend the software in the new JMP Marketplace
Choose Language Hide Translation Bar
hogi
Level XII

Graph builder - Summary Statistics for multiple X values

Hi,

 

Seems that Summary Statistics in Graph builder are just available for one value on the X axis?!

hogi_2-1730980311645.png

 

is there a trick to get the red data points for hogi_0-1730980136408.png displayed as well?

 

hogi_1-1730980237141.png

 

Names Default to Here(1);
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
New Column( "one",
	Formula( 1 )
);

Graph Builder(
	Graph Spacing( 4 ),
	Variables(
		X( :height ),
		X( :weight, Position( 1 ) ),
		Y( :one ),
		Y( :sex )
	),
	Elements(
		Position( 1, 1 ),
		Points( X( 1 ), X( 2 ), Y,  Summary Statistic( "N" ) ),
		Bar( X( 1 ), X( 2 ), Y,  Bar Style( "Stacked" ), Summary Statistic( "N" ) )
	),
	Elements( Position( 1, 2 ), Points( X( 1 ), X( 2 ), Y ) )
);
	
1 ACCEPTED SOLUTION

Accepted Solutions
hogi
Level XII

Re: Graph builder - Summary Statistics for multiple X values

Ah, one can add an additional element, selectively for the second column on the X axis:

hogi_1-1730980851345.png

Names Default to Here(1);
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
New Column( "one",
	Formula( 1 )
);

Graph Builder(
	Variables(
		X( :height ),
		X( :weight, Position( 1 ) ),
		Y( :one ),
		Y( :sex )
	),
	Elements(
		Position( 1, 1 ),
		Points( X( 1 ), Y,  Summary Statistic( "N" ) ),
		Points( X( 2 ), Y,  Summary Statistic( "N" ) )
	),
	Elements( Position( 1, 2 ), Points( X( 1 ), X( 2 ), Y ) )
);

View solution in original post

2 REPLIES 2
hogi
Level XII

Re: Graph builder - Summary Statistics for multiple X values

Ah, one can add an additional element, selectively for the second column on the X axis:

hogi_1-1730980851345.png

Names Default to Here(1);
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
New Column( "one",
	Formula( 1 )
);

Graph Builder(
	Variables(
		X( :height ),
		X( :weight, Position( 1 ) ),
		Y( :one ),
		Y( :sex )
	),
	Elements(
		Position( 1, 1 ),
		Points( X( 1 ), Y,  Summary Statistic( "N" ) ),
		Points( X( 2 ), Y,  Summary Statistic( "N" ) )
	),
	Elements( Position( 1, 2 ), Points( X( 1 ), X( 2 ), Y ) )
);
hogi
Level XII

Re: Graph builder - Summary Statistics for multiple X values

... but strange why it's necessary !?