cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP 19 is here! See the new features at jmp.com/new.
  • Register to attend Discovery Summit 2025 Online: Early Users Edition, Sept. 24-25.
Choose Language Hide Translation Bar
Ling-Zecheng
Level I

How to draw a multivariate linear regression graph with multiple lines based on selected variable

I wan to draw a graph like the first pic, but when I have 3 variables in a new model, my graph looked like the second one. How do I draw multiple lines?
2 REPLIES 2

Re: How to draw a multivariate linear regression graph with multiple lines based on selected variable

Currently, I guess you probably have a category column in the "Color" role, to give your datapoints three different colors. But they are still treated as the same dataset, so only one trend line is shown. 

Instead of using the "Color" role, drag that category variable to the "Overlay" role. That should give three sets of points, and three trend lines. 

More info: Graph Zones 

Byron_JMP
Staff

Re: How to draw a multivariate linear regression graph with multiple lines based on selected variable

Hey, so there is a lot to guess about in this question.

What platform are you using?  Fit Y by X?

 

look for this option

Byron_JMP_0-1758810645415.png

 

 

JMP Systems Engineer, Health and Life Sciences (Pharma)

Recommended Articles