<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Is it possible to display multiple fit lines of different degrees in a single plot? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Is-it-possible-to-display-multiple-fit-lines-of-different/m-p/268340#M52249</link>
    <description>&lt;P&gt;Given your intention, it might be better to look at 'Analyze &amp;gt; Fit Y By X'.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This script:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;
dt = Open("$SAMPLE_DATA/Big Class.jmp");

biv = dt &amp;lt;&amp;lt; Bivariate(
				Y( :height ),
				X( :weight ),
				GroupBy( :sex ),
				FitLine(),
				FitPolynomial(2)
				)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;will produce output like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2020-05-22 at 16.59.24.png" style="width: 389px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/24132i968FD2AE97213F6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2020-05-22 at 16.59.24.png" alt="Screenshot 2020-05-22 at 16.59.24.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;and there are lots of additional customizations you could use.&lt;/P&gt;</description>
    <pubDate>Fri, 22 May 2020 16:03:06 GMT</pubDate>
    <dc:creator>ian_jmp</dc:creator>
    <dc:date>2020-05-22T16:03:06Z</dc:date>
    <item>
      <title>Is it possible to display multiple fit lines of different degrees in a single plot?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-it-possible-to-display-multiple-fit-lines-of-different/m-p/268330#M52247</link>
      <description>&lt;P&gt;I would like to display both linear and quadratic fit lines in the same plot. Essentially a combination of the two plots I've attached to this post.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="graph 1" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/24130i0116745C6050C6C0/image-size/large?v=v2&amp;amp;px=999" role="button" title="graph1.jpg" alt="graph 1" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;graph 1&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="graph 2" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/24131i114465DF61871612/image-size/large?v=v2&amp;amp;px=999" role="button" title="graph2.jpg" alt="graph 2" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;graph 2&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Is this possible in JMP?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 22 May 2020 15:31:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-it-possible-to-display-multiple-fit-lines-of-different/m-p/268330#M52247</guid>
      <dc:creator>JonathanL</dc:creator>
      <dc:date>2020-05-22T15:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to display multiple fit lines of different degrees in a single plot?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-it-possible-to-display-multiple-fit-lines-of-different/m-p/268338#M52248</link>
      <description>&lt;P&gt;I don't think you can do this in Graph Builder, but you can in Fit Y by X.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks like you may have an overlay variable, just be sure to use the Fit Y by X "Group By" command before fitting the lines and the quadratic polynomials.&lt;/P&gt;</description>
      <pubDate>Fri, 22 May 2020 16:02:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-it-possible-to-display-multiple-fit-lines-of-different/m-p/268338#M52248</guid>
      <dc:creator>Dan_Obermiller</dc:creator>
      <dc:date>2020-05-22T16:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to display multiple fit lines of different degrees in a single plot?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-it-possible-to-display-multiple-fit-lines-of-different/m-p/268340#M52249</link>
      <description>&lt;P&gt;Given your intention, it might be better to look at 'Analyze &amp;gt; Fit Y By X'.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This script:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;
dt = Open("$SAMPLE_DATA/Big Class.jmp");

biv = dt &amp;lt;&amp;lt; Bivariate(
				Y( :height ),
				X( :weight ),
				GroupBy( :sex ),
				FitLine(),
				FitPolynomial(2)
				)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;will produce output like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2020-05-22 at 16.59.24.png" style="width: 389px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/24132i968FD2AE97213F6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2020-05-22 at 16.59.24.png" alt="Screenshot 2020-05-22 at 16.59.24.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;and there are lots of additional customizations you could use.&lt;/P&gt;</description>
      <pubDate>Fri, 22 May 2020 16:03:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-it-possible-to-display-multiple-fit-lines-of-different/m-p/268340#M52249</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2020-05-22T16:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to display multiple fit lines of different degrees in a single plot?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-it-possible-to-display-multiple-fit-lines-of-different/m-p/268357#M52255</link>
      <description>&lt;P&gt;I agree with &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/3194"&gt;@Dan_Obermiller&lt;/a&gt;&amp;nbsp;and &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/3605"&gt;@ian_jmp&lt;/a&gt;&amp;nbsp;but if you really need to use Graph Builder, then the approach is to first fit the models separately and save each one of them as column formula. Then add these columns in the Y drop zone of Graph Builder. Now change the rendering element to Formula.&lt;/P&gt;</description>
      <pubDate>Fri, 22 May 2020 16:31:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-it-possible-to-display-multiple-fit-lines-of-different/m-p/268357#M52255</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2020-05-22T16:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to display multiple fit lines of different degrees in a single plot?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-it-possible-to-display-multiple-fit-lines-of-different/m-p/268553#M52269</link>
      <description>Excellent, this worked. Thank you.</description>
      <pubDate>Fri, 22 May 2020 20:02:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-it-possible-to-display-multiple-fit-lines-of-different/m-p/268553#M52269</guid>
      <dc:creator>JonathanL</dc:creator>
      <dc:date>2020-05-22T20:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to display multiple fit lines of different degrees in a single plot?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-it-possible-to-display-multiple-fit-lines-of-different/m-p/268623#M52284</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/19029"&gt;@JonathanL&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;This can be done in Graph Builder, if you would prefer to do it there. If you would like to display a second line element using a different degree, you'll need to add that second element, either by holding the shift key and clicking the line of fit element, or dragging the line of fit element into the graph after you've already selected it. Then, you can change the degree for this second line of fit element. Like every other element, variables in other roles are respected unless disabled, so if you have a variable in the Overlay role, both of these line elements will display lines of fit separately for the levels of the Overlay variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Dual.gif" style="width: 758px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/24145i9B0198BC0286E417/image-size/large?v=v2&amp;amp;px=999" role="button" title="Dual.gif" alt="Dual.gif" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2026"&gt;@jules&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 23 May 2020 19:21:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-it-possible-to-display-multiple-fit-lines-of-different/m-p/268623#M52284</guid>
      <dc:creator>jules</dc:creator>
      <dc:date>2020-05-23T19:21:51Z</dc:date>
    </item>
  </channel>
</rss>

