cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
The Discovery Summit 2025 Call for Content is open! Submit an abstract today to present at our premier analytics conference.
Get the free JMP Student Edition for qualified students and instructors at degree granting institutions.
Choose Language Hide Translation Bar
View Original Published Thread

Unbiased bisector on Scatter plot

Jacovz
Level I

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 I


Re: Unbiased bisector on Scatter plot

Thanks Jarmo