Our World Statistics Day conversations have been a great reminder of how much statistics can inform our lives. Do you have an example of how statistics has made a difference in your life? Share your story with the Community!
Choose Language Hide Translation Bar
Highlighted
TalDamri
Level II

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

Re: how to add Percentage difference on graph

Thanks! 

 

add it is possible to add a custom calculation automatically ?

Highlighted
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

Article Labels

    There are no labels assigned to this post.