cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Don’t miss your chance to experience Discovery Summit Europe at our best available rate! Early bird registration through 31 Oct.
  • Image to Table JMP extension imports single or batch images as data tables. Useful to extract curves from pictures or convert image data to curve data to use in analyses like Functional Data Explorer. Download and install the extension.

Discussions

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

Unbiased bisector on Scatter plot

Hi, 
Is there a way to plot the 1:1 bisector on a scatter plot. I have plotted the fit line but i want the 1:1 bisector to show potential bias in the data.

Jacovz_0-1736306064851.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: Unbiased bisector on Scatter plot

You can use graphic scripts to add extra lines to your graphs. For example line built using 

Line({X Origin(), Y Origin()}, {X Origin() + X Range(), Y Origin() + Y Range()}); will go from bottom left to top right and you can replace X Origin()... and so on with your own values as needed

 

Names Default To Here(1); 

dt = open("$SAMPLE_DATA/Big Class.jmp");

gb = dt << Graph Builder(
	Variables(X(:weight), Y(:height), Overlay(:sex)),
	Elements(Points(X, Y, Legend(9)))
);

Report(gb)[FrameBox(1)] << Add Graphics Script(
	Pen Color("Blue");
	Pen Size(1);
	Line({X Origin(), Y Origin()}, {X Origin() + X Range(), Y Origin() + Y Range()});
);

jthi_0-1736314626185.png

 

-Jarmo

View solution in original post

2 REPLIES 2
jthi
Super User

Re: Unbiased bisector on Scatter plot

You can use graphic scripts to add extra lines to your graphs. For example line built using 

Line({X Origin(), Y Origin()}, {X Origin() + X Range(), Y Origin() + Y Range()}); will go from bottom left to top right and you can replace X Origin()... and so on with your own values as needed

 

Names Default To Here(1); 

dt = open("$SAMPLE_DATA/Big Class.jmp");

gb = dt << Graph Builder(
	Variables(X(:weight), Y(:height), Overlay(:sex)),
	Elements(Points(X, Y, Legend(9)))
);

Report(gb)[FrameBox(1)] << Add Graphics Script(
	Pen Color("Blue");
	Pen Size(1);
	Line({X Origin(), Y Origin()}, {X Origin() + X Range(), Y Origin() + Y Range()});
);

jthi_0-1736314626185.png

 

-Jarmo
Jacovz
Level II

Re: Unbiased bisector on Scatter plot

Thanks Jarmo

Recommended Articles