cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Choose Language Hide Translation Bar
TalDamri
Level III

how to add Percentage difference on graph

Hi.

 

I built a graph with 1 response and two variations (X axis and warp) .

 

You can see it here 

 

but, I would like to add a the percentage difference, as you can see in the next  photo- I made by PP

 

test.png

 

 

 

 

 

 

 

does anyone have a recommendation what is the best way to do this?

 

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: how to add Percentage difference on graph

Yes.

Here is an example taken right from the Scripting Index for "<< Add Graphics Script".  It uses the Bivariate platform, but << Add Graphics Script is also supported for the Graph Builder

Names Default To Here( 1 );
Open( "$SAMPLE_DATA/Big Class.jmp" );
biv = Bivariate( Y( :weight ), X( :height ), FitLine );
rbiv = biv << report;
framebox = rbiv[frame box( 1 )];
framebox << Add Graphics Script(
	Transparency( 0.5 );
	Fill Color( {1.0, 0.5, 0.0} );
	Polygon( [60, 72, 57], [75, 120, 120] );
);
Jim

View solution in original post

3 REPLIES 3
txnelson
Super User

Re: how to add Percentage difference on graph

You can add the annotations by using the Objects available under the Tool Bar

anno.PNG

Or you can use JSL and the "<< Add Graphics Script" to add the annotation programmatically

Jim
TalDamri
Level III

Re: how to add Percentage difference on graph

Thanks! 

 

add it is possible to add a custom calculation automatically ?

txnelson
Super User

Re: how to add Percentage difference on graph

Yes.

Here is an example taken right from the Scripting Index for "<< Add Graphics Script".  It uses the Bivariate platform, but << Add Graphics Script is also supported for the Graph Builder

Names Default To Here( 1 );
Open( "$SAMPLE_DATA/Big Class.jmp" );
biv = Bivariate( Y( :weight ), X( :height ), FitLine );
rbiv = biv << report;
framebox = rbiv[frame box( 1 )];
framebox << Add Graphics Script(
	Transparency( 0.5 );
	Fill Color( {1.0, 0.5, 0.0} );
	Polygon( [60, 72, 57], [75, 120, 120] );
);
Jim