cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Learn how to build custom Python data connectors and further customize JMP’s Data Connector Framework with the Python Data Connector Demo, available now in the JMP Marketplace!
  • See how to create experiments to support product design and ID useful product features. Register for June 12 webinar, 2pm US Eastern Time.

Discussions

Solve problems, and share tips and tricks with other JMP users.
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

Recommended Articles