<?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: Graph Builder: Fit of line -disable y offset? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Graph-Builder-Fit-of-line-disable-y-offset/m-p/617888#M81740</link>
    <description>&lt;P&gt;Hm, I was searching for a &lt;STRONG&gt;&lt;EM&gt;one-click&amp;nbsp;&lt;/EM&gt;&lt;EM&gt;solution&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;to get a "1:1" correlation line *) into the Graph Builder Plot, one which goes through&amp;nbsp; 0/0 and runs close to the data points **)&amp;nbsp; - I guess I will write a script which just calculates the center of gravity and draws the line.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*)&lt;BR /&gt;edit:&lt;BR /&gt;along the idea:&lt;BR /&gt;- 0 % -&amp;gt; 0%&lt;BR /&gt;- 100% -&amp;gt; 100%&lt;BR /&gt;For all the cases where it's 100% clear that X and Y correlate without offset,&lt;/P&gt;&lt;P&gt;like a conversion of scales: any jitter around the line can just be a measurement artifact (either on the X or Y axis - or on both).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;**) By the way - actually I &lt;STRONG&gt;thought&lt;/STRONG&gt; that a fit with constrained Y intercept goes somewhere close to the center of gravity:&lt;BR /&gt;no freedom for the Intercept, 1 degree of freedom to get close to the data points.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1680105442245.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/51581i294BF35ED362D9C3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1680105442245.png" alt="hogi_0-1680105442245.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was a bit surprised to see (red line: y not constrained, green line y=0)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_3-1680105610009.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/51584i638539059E95CA2F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_3-1680105610009.png" alt="hogi_3-1680105610009.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_4-1680105676128.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/51585iF720A137B3F3519F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_4-1680105676128.png" alt="hogi_4-1680105676128.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_5-1680105793566.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/51586iF8BE587AB3B628F5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_5-1680105793566.png" alt="hogi_5-1680105793566.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;So, calculating the center of gravity and drawing the line seems to be the better approach for what I want to do ...&lt;/P&gt;</description>
    <pubDate>Thu, 30 Mar 2023 06:23:31 GMT</pubDate>
    <dc:creator>hogi</dc:creator>
    <dc:date>2023-03-30T06:23:31Z</dc:date>
    <item>
      <title>Graph Builder: Fit of line -disable y offset?</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-Fit-of-line-disable-y-offset/m-p/617677#M81717</link>
      <description>&lt;P&gt;In GraphBuilder, for fit of line, is it possible to set the y-offset fixed to 0?&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:30:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-Fit-of-line-disable-y-offset/m-p/617677#M81717</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-06-11T11:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Builder: Fit of line -disable y offset?</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-Fit-of-line-disable-y-offset/m-p/617693#M81721</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/26800"&gt;@hogi&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;No, I don't think that it is. I think that you are asking to constrain the intercept to zero. For more complex modelling options like this, you need to use Fit Y by X from the Analyze menu. From the red triangle menu for Bivariate Fit you can select Fit Special... and then you can select Constrain Intercept to 0:&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-inline" image-alt="Phil_Kay_0-1680079981890.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/51569iDCF565F5CA505094/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Phil_Kay_0-1680079981890.png" alt="Phil_Kay_0-1680079981890.png" /&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;I hope this helps,&lt;/P&gt;
&lt;P&gt;Phil&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 08:54:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-Fit-of-line-disable-y-offset/m-p/617693#M81721</guid>
      <dc:creator>Phil_Kay</dc:creator>
      <dc:date>2023-03-29T08:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Builder: Fit of line -disable y offset?</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-Fit-of-line-disable-y-offset/m-p/617856#M81735</link>
      <description>&lt;P&gt;You can fit a model as&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/1888"&gt;@Phil_Kay&lt;/a&gt;&amp;nbsp;describes, save the prediction formula, and add that column to the Y axis as a function graphics element.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 15:04:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-Fit-of-line-disable-y-offset/m-p/617856#M81735</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2023-03-29T15:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Builder: Fit of line -disable y offset?</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-Fit-of-line-disable-y-offset/m-p/617888#M81740</link>
      <description>&lt;P&gt;Hm, I was searching for a &lt;STRONG&gt;&lt;EM&gt;one-click&amp;nbsp;&lt;/EM&gt;&lt;EM&gt;solution&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;to get a "1:1" correlation line *) into the Graph Builder Plot, one which goes through&amp;nbsp; 0/0 and runs close to the data points **)&amp;nbsp; - I guess I will write a script which just calculates the center of gravity and draws the line.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*)&lt;BR /&gt;edit:&lt;BR /&gt;along the idea:&lt;BR /&gt;- 0 % -&amp;gt; 0%&lt;BR /&gt;- 100% -&amp;gt; 100%&lt;BR /&gt;For all the cases where it's 100% clear that X and Y correlate without offset,&lt;/P&gt;&lt;P&gt;like a conversion of scales: any jitter around the line can just be a measurement artifact (either on the X or Y axis - or on both).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;**) By the way - actually I &lt;STRONG&gt;thought&lt;/STRONG&gt; that a fit with constrained Y intercept goes somewhere close to the center of gravity:&lt;BR /&gt;no freedom for the Intercept, 1 degree of freedom to get close to the data points.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1680105442245.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/51581i294BF35ED362D9C3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1680105442245.png" alt="hogi_0-1680105442245.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was a bit surprised to see (red line: y not constrained, green line y=0)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_3-1680105610009.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/51584i638539059E95CA2F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_3-1680105610009.png" alt="hogi_3-1680105610009.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_4-1680105676128.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/51585iF720A137B3F3519F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_4-1680105676128.png" alt="hogi_4-1680105676128.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_5-1680105793566.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/51586iF8BE587AB3B628F5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_5-1680105793566.png" alt="hogi_5-1680105793566.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;So, calculating the center of gravity and drawing the line seems to be the better approach for what I want to do ...&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 06:23:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-Fit-of-line-disable-y-offset/m-p/617888#M81740</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-03-30T06:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Builder: Fit of line -disable y offset?</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-Fit-of-line-disable-y-offset/m-p/617892#M81742</link>
      <description>&lt;P&gt;When you say "&lt;SPAN&gt;"1:1" correlation line&lt;/SPAN&gt;", do you want a 45-degree line i.e. y=x : if so, you can do that in Graph Builder&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;right-click&amp;gt; customise&amp;gt; add a script using the Y Function template and set the function of x as x:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Y Function(x, x);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(ok, not a "one-click" solution, but very effective if you want a reference line for a calibration curve, or a reference line for actual versus predicted)&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 16:18:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-Fit-of-line-disable-y-offset/m-p/617892#M81742</guid>
      <dc:creator>David_Burnham</dc:creator>
      <dc:date>2023-03-29T16:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Builder: Fit of line -disable y offset?</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-Fit-of-line-disable-y-offset/m-p/617893#M81743</link>
      <description>&lt;P&gt;Thanks I will use the Y function to add the line.&lt;BR /&gt;&lt;BR /&gt;But it will not be y = ONE times x.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let's say X is measured in cm and Y is measured in inch.&lt;BR /&gt;Same holds for measurements of the same property at different tools - or at different times during production process.&lt;BR /&gt;(if I &lt;EM&gt;&lt;STRONG&gt;know&lt;/STRONG&gt; &lt;/EM&gt;that 0 is measured as 0)&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 16:25:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-Fit-of-line-disable-y-offset/m-p/617893#M81743</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-03-29T16:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Builder: Fit of line -disable y offset?</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-Fit-of-line-disable-y-offset/m-p/617917#M81744</link>
      <description>&lt;P&gt;You can create a new variable inside the platform with a formula equal to the x variable (right click on x variable, formula,, and okay), then add that as a y variable and draw a function element on the chart.&amp;nbsp; Remove that from the other graph elements and only select the transformed variable in the function. It does take a few clicks and necessitates custom y axis and chart labels:&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-inline" image-alt="ih_1-1680112439902.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/51588iEABC06683DD2F98B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ih_1-1680112439902.png" alt="ih_1-1680112439902.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ih_0-1680112280954.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/51587i9865869A55A3C506/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ih_0-1680112280954.png" alt="ih_0-1680112280954.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Script to reproduce charts:&lt;/P&gt;
&lt;LI-SPOILER&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

dt = Open( "$Sample_data/iris.jmp" );

dt &amp;lt;&amp;lt; Graph Builder(
	Transform Column( "Transform[Sepal length]", Formula( :Sepal length ) ),
	Size( 491, 506 ),
	Variables(
		X( :Sepal length ),
		Y( :Petal length ),
		Y( :"Transform[Sepal length]"n, Position( 1 ) )
	),
	Elements( Points( X, Y( 1 ), Legend( 6 ) ), Formula( X, Y( 2 ), Legend( 8 ) ) ),
	SendToReport(
		Dispatch( {"Points"}, "", OutlineBox, {Close( 0 )} ),
		Dispatch( {"Formula"}, "", OutlineBox, {Close( 0 )} )
	)
);

dt &amp;lt;&amp;lt; Graph Builder(
	Transform Column( "Transform[Sepal length]", Formula( :Sepal length ) ),
	Size( 443, 462 ),
	Show Control Panel( 0 ),
	Variables(
		X( :Sepal length ),
		Y( :Petal length ),
		Y( :"Transform[Sepal length]"n, Position( 1 ) )
	),
	Elements( Points( X, Y( 1 ), Legend( 6 ) ), Formula( X, Y( 2 ), Legend( 8 ) ) ),
	SendToReport(
		Dispatch(
			{},
			"400",
			ScaleBox,
			{Legend Model(
				8,
				Level Name( 0, "1:1 Line", Item ID( "Transform[Sepal length]", 1 ) )
			)}
		),
		Dispatch(
			{},
			"graph title",
			TextEditBox,
			{Set Text( "Petal length is usually smaller than Sepal length" )}
		),
		Dispatch( {}, "Y title", TextEditBox, {Set Text( "Petal length" )} )
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/LI-SPOILER&gt;</description>
      <pubDate>Wed, 29 Mar 2023 17:54:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-Fit-of-line-disable-y-offset/m-p/617917#M81744</guid>
      <dc:creator>ih</dc:creator>
      <dc:date>2023-03-29T17:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Builder: Fit of line -disable y offset?</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-Fit-of-line-disable-y-offset/m-p/618071#M81757</link>
      <description>&lt;P&gt;Argh, I just thought again - and remembered a wonderful micro-"lecture" that&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2026"&gt;@jules&lt;/a&gt;&amp;nbsp;gave in the DataViz breakout room at Discovery Summit Europe 2023 - how easy you can solve puzzles with regression - by showing the squared residuals in the plot via&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Open( "$SAMPLE_DATA/../Scripts/InteractiveDemos/DemonstrateRegression.jsl" );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;After dragging the points and lines one can sees that my puzzles &lt;STRONG&gt;&lt;EM&gt;with the constrained fit&lt;/EM&gt;&lt;/STRONG&gt; were actually the ordinary thing with fit outliers - and the squared weighting of the residuals - and a fit line which definitely doesn't hit the center of gravity:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1680168055422.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/51600i79436B589F2653C5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1680168055422.png" alt="hogi_0-1680168055422.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_1-1680168078398.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/51601iD4DEF231179D04FA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_1-1680168078398.png" alt="hogi_1-1680168078398.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 09:23:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-Fit-of-line-disable-y-offset/m-p/618071#M81757</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-03-30T09:23:02Z</dc:date>
    </item>
  </channel>
</rss>

