<?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 How to add Fit Line (Trend Line) at subgroups in a scatter plot. in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-add-Fit-Line-Trend-Line-at-subgroups-in-a-scatter-plot/m-p/433759#M68350</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to insert separate Fit Line (Trend Line) for males and females in the same scatter plot.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The scatter plot should have different symbols for males and females.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 11 Jun 2023 11:19:03 GMT</pubDate>
    <dc:creator>LokeshPulmo</dc:creator>
    <dc:date>2023-06-11T11:19:03Z</dc:date>
    <item>
      <title>How to add Fit Line (Trend Line) at subgroups in a scatter plot.</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-add-Fit-Line-Trend-Line-at-subgroups-in-a-scatter-plot/m-p/433759#M68350</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to insert separate Fit Line (Trend Line) for males and females in the same scatter plot.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The scatter plot should have different symbols for males and females.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:19:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-add-Fit-Line-Trend-Line-at-subgroups-in-a-scatter-plot/m-p/433759#M68350</guid>
      <dc:creator>LokeshPulmo</dc:creator>
      <dc:date>2023-06-11T11:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to add Fit Line (Trend Line) at subgroups in a scatter plot.</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-add-Fit-Line-Trend-Line-at-subgroups-in-a-scatter-plot/m-p/433771#M68351</link>
      <description>&lt;P&gt;There are a few different platforms that can be used to plot trend lines for different subgroups.&lt;/P&gt;
&lt;P&gt;Scatterplot Matrix'&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1636189697324.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/37329i88C9A4C78F2DCC2E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_0-1636189697324.png" alt="txnelson_0-1636189697324.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Go to&amp;nbsp; &amp;nbsp; &amp;nbsp;Graph=&amp;gt;Scatterplot Matrix&lt;/LI&gt;
&lt;LI&gt;Specify the X and Y columns to use&lt;/LI&gt;
&lt;LI&gt;Specify the Group variable to be Sex&lt;/LI&gt;
&lt;LI&gt;Once the graph is open, select Fit Line from the red triangle.&lt;/LI&gt;
&lt;LI&gt;To change the color and the markers, go to the data table&amp;nbsp;
&lt;OL&gt;
&lt;LI&gt;Select all of the rows for the males&lt;/LI&gt;
&lt;LI&gt;Go to Row State column for one of the selected rows and right&amp;nbsp;click and select the color to use&lt;/LI&gt;
&lt;LI&gt;Right click again, and select the marker to use&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Repeat the above three steps for the females&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Graph Builder&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_1-1636190534075.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/37330iC4C61BA7BC16F182/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_1-1636190534075.png" alt="txnelson_1-1636190534075.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Go to&amp;nbsp; &amp;nbsp; Graph=&amp;gt;Graph Builder&lt;/LI&gt;
&lt;LI&gt;Drag the X column to the X Drop area&lt;/LI&gt;
&lt;LI&gt;Drag the Y column to the Y Drop area&lt;/LI&gt;
&lt;LI&gt;Right Click on the chart and select&amp;nbsp; &amp;nbsp; Smoother=&amp;gt;Remove&lt;/LI&gt;
&lt;LI&gt;Click on the Fit Line icon&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_2-1636190781215.png" style="width: 46px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/37331i5695350D9D201CDB/image-dimensions/46x45?v=v2" width="46" height="45" role="button" title="txnelson_2-1636190781215.png" alt="txnelson_2-1636190781215.png" /&gt;&lt;/span&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;Drag the Sex column to the Overlay Drop Area&lt;/LI&gt;
&lt;LI&gt;Drag the Sex column to the Color Drop area&lt;/LI&gt;
&lt;LI&gt;In the legend area, right click on each of the lines and change the color and line style to match the colors of the markers&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Fit Y by X&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_4-1636191296465.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/37333i682EE461143BDF8E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_4-1636191296465.png" alt="txnelson_4-1636191296465.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Go to&amp;nbsp; &amp;nbsp; Analyze=&amp;gt;Fit Y by X&lt;/LI&gt;
&lt;LI&gt;Select the X and Y columns&lt;/LI&gt;
&lt;LI&gt;In the output display, under the red triangle, select Group By and select the Sex column&lt;/LI&gt;
&lt;LI&gt;Under the red triangle, select&amp;nbsp; &amp;nbsp; Fit Line&lt;/LI&gt;
&lt;LI&gt;Change the marker and the color of the points as was done in the Scatterplot Matrix, by changing the Row State values for each of the sexes.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 06 Nov 2021 09:37:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-add-Fit-Line-Trend-Line-at-subgroups-in-a-scatter-plot/m-p/433771#M68351</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-11-06T09:37:00Z</dc:date>
    </item>
  </channel>
</rss>

