cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Discussions

Solve problems, and share tips and tricks with other JMP users.
%3CLINGO-SUB%20id%3D%22lingo-sub-233258%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%A6%82%E4%BD%95%E5%9C%A8%E5%9C%96%E8%A1%A8%E4%B8%8A%E6%B7%BB%E5%8A%A0%E7%99%BE%E5%88%86%E6%AF%94%E5%B7%AE%E7%95%B0%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-233258%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E4%BD%A0%E5%A5%BD%E3%80%82%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%E6%88%91%E6%A7%8B%E5%BB%BA%E4%BA%86%E4%B8%80%E5%80%8B%E5%85%B7%E6%9C%89%201%20%E5%80%8B%E9%9F%BF%E6%87%89%E5%92%8C%E5%85%A9%E5%80%8B%E8%AE%8A%E5%8C%96%EF%BC%88X%20%E8%BB%B8%E5%92%8C%E6%89%AD%E6%9B%B2%EF%BC%89%E7%9A%84%E5%9C%96%E8%A1%A8%E3%80%82%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fpublic.jmp.com%2Fpackages%2FGraph-Builder%2Fjs-p%2FGBG5bpnyJFh54pTmJhkjd%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%E5%9C%A8%E9%80%99%E8%A3%A1%E4%BD%A0%E5%8F%AF%E4%BB%A5%E7%9C%8B%E5%88%B0%E5%AE%83%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%E4%BD%86%E6%98%AF%EF%BC%8C%E6%88%91%E6%83%B3%E6%B7%BB%E5%8A%A0%E4%B8%80%E5%80%8B%E7%99%BE%E5%88%86%E6%AF%94%E5%B7%AE%E7%95%B0%EF%BC%8C%E6%AD%A3%E5%A6%82%E6%82%A8%E5%9C%A8%E4%B8%8B%E4%B8%80%E5%BC%B5%E7%85%A7%E7%89%87%E4%B8%AD%E7%9C%8B%E5%88%B0%E7%9A%84%E9%82%A3%E6%A8%A3%E2%80%94%E2%80%94%E6%88%91%E7%94%B1%20PP%20%E8%A3%BD%E4%BD%9C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-left%22%20image-alt%3D%22test.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22test.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22test.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F20248iF04743CB158269FC%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22test.png%22%20alt%3D%22test.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%E6%9C%89%E6%B2%92%E6%9C%89%E4%BA%BA%E5%BB%BA%E8%AD%B0%E6%9C%80%E5%A5%BD%E7%9A%84%E6%96%B9%E6%B3%95%E6%98%AF%E4%BB%80%E9%BA%BC%EF%BC%9F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-233298%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E5%A6%82%E4%BD%95%E5%9C%A8%E5%9C%96%E8%A1%A8%E4%B8%8A%E6%B7%BB%E5%8A%A0%E7%99%BE%E5%88%86%E6%AF%94%E5%B7%AE%E7%95%B0%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-233298%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E6%98%AF%E7%9A%84%E3%80%82%3C%2FP%3E%0A%3CP%3E%E4%BB%A5%E4%B8%8B%E6%98%AF%E2%80%9C%26lt%3B%26lt%3B%20%E6%B7%BB%E5%8A%A0%E5%9C%96%E5%BD%A2%E8%85%B3%E6%9C%AC%E2%80%9D%E7%9A%84%E8%85%B3%E6%9C%AC%E7%B4%A2%E5%BC%95%E4%B8%AD%E7%9A%84%E7%A4%BA%E4%BE%8B%E3%80%82%E5%AE%83%E4%BD%BF%E7%94%A8%20Bivariate%20%E5%B9%B3%E5%8F%B0%EF%BC%8C%E4%BD%86%E5%9C%96%E5%BD%A2%E7%94%9F%E6%88%90%E5%99%A8%E4%B9%9F%E6%94%AF%E6%8C%81%20%26lt%3B%26lt%3B%20%E6%B7%BB%E5%8A%A0%E5%9C%96%E5%BD%A2%E8%85%B3%E6%9C%AC%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENames%20Default%20To%20Here(%201%20)%3B%0AOpen(%20%22%24SAMPLE_DATA%2FBig%20Class.jmp%22%20)%3B%0Abiv%20%3D%20Bivariate(%20Y(%20%3Aweight%20)%2C%20X(%20%3Aheight%20)%2C%20FitLine%20)%3B%0Arbiv%20%3D%20biv%20%26lt%3B%26lt%3B%20report%3B%0Aframebox%20%3D%20rbiv%5Bframe%20box(%201%20)%5D%3B%0Aframebox%20%26lt%3B%26lt%3B%20Add%20Graphics%20Script(%0A%20Transparency(%200.5%20)%3B%0A%20Fill%20Color(%20%7B1.0%2C%200.5%2C%200.0%7D%20)%3B%0A%20Polygon(%20%5B60%2C%2072%2C%2057%5D%2C%20%5B75%2C%20120%2C%20120%5D%20)%3B%0A)%3B%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-233270%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E5%A6%82%E4%BD%95%E5%9C%A8%E5%9C%96%E8%A1%A8%E4%B8%8A%E6%B7%BB%E5%8A%A0%E7%99%BE%E5%88%86%E6%AF%94%E5%B7%AE%E7%95%B0%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-233270%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E8%AC%9D%E8%AC%9D%EF%BC%81%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%E6%B7%BB%E5%8A%A0%E6%98%AF%E5%90%A6%E5%8F%AF%E4%BB%A5%E8%87%AA%E5%8B%95%E6%B7%BB%E5%8A%A0%E8%87%AA%E5%AE%9A%E7%BE%A9%E8%A8%88%E7%AE%97%EF%BC%9F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-233269%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E5%A6%82%E4%BD%95%E5%9C%A8%E5%9C%96%E8%A1%A8%E4%B8%8A%E6%B7%BB%E5%8A%A0%E7%99%BE%E5%88%86%E6%AF%94%E5%B7%AE%E7%95%B0%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-233269%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E6%82%A8%E5%8F%AF%E4%BB%A5%E4%BD%BF%E7%94%A8%E5%B7%A5%E5%85%B7%E6%AC%84%E4%B8%8B%E5%8F%AF%E7%94%A8%E7%9A%84%E5%B0%8D%E8%B1%A1%E6%B7%BB%E5%8A%A0%E8%A8%BB%E9%87%8B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22anno.PNG%22%20style%3D%22width%3A%20476px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22anno.PNG%22%20style%3D%22width%3A%20476px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22anno.PNG%22%20style%3D%22width%3A%20476px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F20249i42C5F1DA068ADBDF%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22anno.PNG%22%20alt%3D%22anno.PNG%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%E6%88%96%E8%80%85%E6%82%A8%E5%8F%AF%E4%BB%A5%E4%BD%BF%E7%94%A8%20JSL%20%E5%92%8C%E2%80%9C%26lt%3B%26lt%3B%20%E6%B7%BB%E5%8A%A0%E5%9C%96%E5%BD%A2%E8%85%B3%E6%9C%AC%E2%80%9D%E4%BB%A5%E7%B7%A8%E7%A8%8B%E6%96%B9%E5%BC%8F%E6%B7%BB%E5%8A%A0%E8%A8%BB%E9%87%8B%3C%2FP%3E%3C%2FLINGO-BODY%3E
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

Recommended Articles