cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
Choose Language Hide Translation Bar
Jacovz
Level I

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 I

Re: Unbiased bisector on Scatter plot

Thanks Jarmo