cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Learn how to build custom Python data connectors and further customize JMP’s Data Connector Framework with the Python Data Connector Demo, available now in the JMP Marketplace!
  • See how to create experiments to support product design and ID useful product features. Register for June 12 webinar, 2pm US Eastern Time.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
hogi
Level XIII

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 XIII

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 XIII

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 XIII

Re: Graph builder - Summary Statistics for multiple X values

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

Recommended Articles