<?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: Changing fit line color while using fit model in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Changing-fit-line-color-while-using-fit-model/m-p/55502#M31390</link>
    <description>&lt;P&gt;Jeff,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is cool.&amp;nbsp; Yes, this does force the line to be colored by the Value Colors().&amp;nbsp; I found that &lt;U&gt;&lt;STRONG&gt;Using JMP&lt;/STRONG&gt;&lt;/U&gt; documents that Value Colors()&amp;nbsp; is one of the column properties that "&lt;EM&gt;attach information that is used in reports and plots&lt;/EM&gt;" but it is not very specific. It would be nice to add what it does.&amp;nbsp; Note that :sex is a modeled factor, yet the points do not use it. So maybe another sentence or Tip of what it does vs. doesn't would be nice to have.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since this is related to Fit model, it would be nice if a colum's predicted and residuals would also use the associated table's Value Colors(), so that Leverage plots, etc. would use that coloring as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for documenting this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;</description>
    <pubDate>Thu, 26 Apr 2018 01:21:54 GMT</pubDate>
    <dc:creator>gzmorgan0</dc:creator>
    <dc:date>2018-04-26T01:21:54Z</dc:date>
    <item>
      <title>Changing fit line color while using fit model</title>
      <link>https://community.jmp.com/t5/Discussions/Changing-fit-line-color-while-using-fit-model/m-p/55453#M31361</link>
      <description>&lt;P&gt;I am using the fit&amp;nbsp; model to draw fit lines based on the value of my column 'Tools'. I have 2 values in this column 'a' and 'b'. I need a &lt;SPAN&gt;red fit line for 'a' and blue fit line for 'b' in all scenarios. Seems like the &lt;/SPAN&gt;&amp;nbsp;default colors being used in fit models is red for the fit line of the first value and blue for the following, something that I have leveraged to get the required functionality, i.e red fit line for 'a' and blue fit line for 'b' by using value ordering in the code below. It works perfect when I have both “a” and “b” in my Tools column, ‘a’ gets red color(default color) and ‘b’ gets blue. But in scenarios where my 'Tools' column has only&amp;nbsp; value ‘b', the fit line for ‘b’ shows up in red color(default color). Is there some way I&amp;nbsp;can trick it such that ‘b’ still gets a blue fit line ? Basically, I need control over the colors used for the fit line in the Fit Model. Is that possible in the code below ?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Column( "Tools" ) &amp;lt;&amp;lt; Set Property( value ordering, {"a", "b"} );
vdtTmp &amp;lt;&amp;lt; append(
	H List Box(
		vFit = Fit Model(
			Y( :Value ),
			Effects( :Date, :Tools ),
			Personality( Standard Least Squares ),
			Emphasis( Effect Leverage ),
			Run Model(
				:Value &amp;lt;&amp;lt; {Pareto Plot( 0 ), Plot Actual by Predicted( 1 ), Plot Residual by Predicted( 1 ),
				Plot Effect Leverage( 1 )}
			),
			invisible
		), 

	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 25 Apr 2018 00:17:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Changing-fit-line-color-while-using-fit-model/m-p/55453#M31361</guid>
      <dc:creator>AnneMaryJoy</dc:creator>
      <dc:date>2018-04-25T00:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: Changing fit line color while using fit model</title>
      <link>https://community.jmp.com/t5/Discussions/Changing-fit-line-color-while-using-fit-model/m-p/55466#M31368</link>
      <description>&lt;P&gt;Anne Marie,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had a very detailed response, but I guess it took too long writing it.&amp;nbsp; I am hoping it can be retrieved, if not I will try to capture the essence later.&amp;nbsp; Attached is a script that runs in 12, 13 and 14.&amp;nbsp; My "lost" note proposed an approach. The script uses 2 different methods to do the customization: (1) Xpath finding graph segments and customizing; and (2)&amp;nbsp; using Dispatch to numbered segments. On approach is to use method 2 and create an onlyAexpr, onlyBexpr and bothexpr, then based upon the scenario run the corresponding expression.&lt;/P&gt;&lt;P&gt;My note explained there are easier options, depending upon your requirements.&amp;nbsp; Hopefully it will be restored.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 18:12:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Changing-fit-line-color-while-using-fit-model/m-p/55466#M31368</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2018-04-25T18:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: Changing fit line color while using fit model</title>
      <link>https://community.jmp.com/t5/Discussions/Changing-fit-line-color-while-using-fit-model/m-p/55495#M31386</link>
      <description>&lt;P&gt;I was told a draft of my reply should be available, but it was not. So this note will add some details lost with the original post.&lt;/P&gt;&lt;P&gt;Your script is fitting a common slope model (analysis of covariance). Typically, that should always be accompanied with a test for interaction (the slopes vary by tool). The model also uses :Date as the continuous factor which is typical of a time series or control chart model.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The reason for these questions is that the line color task is much easier in other platforms, for example, Bivariate where Tool would be a grouping factor.&amp;nbsp; If you clarify the goal of your model, the bloggers can assess if there might be a better platform to use.&amp;nbsp; Most often there are multiple methods to achieve a task in JMP.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As stated the script (attached) does perform the task you requested. The script uses Big Class where :weight replaces :Value, :height replaces :Date and :sex replaces :Tool. The Fit model statement was slightly modified so that the Fit Model Dialog is closed after it runs.&amp;nbsp; Some script notes:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The first model fit uses only M (males)&amp;nbsp; to emulate your only "b" scenario.&amp;nbsp; It uses a method to find named graph segments using Xpath then sends messages to modify the colors.&lt;/LI&gt;&lt;LI&gt;Note: the named segment for the confidence band changed in JMP 14, in JMP 12 &amp;amp; 13, it is called ".05 Significance Curve" and in JMP 14 is is called "&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/FONT&gt;.05 Significance Curve"; there is a comment in the script above the line that needs changing.&amp;nbsp;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;The second model fits both F and M (simulating your 2 tool scenario). This is an example of an alternate method using numbered segments and Dispatch statements.&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Another item to note is that JMP 13 and 14 have shaded Confidence bands. I found an issue (that I reported to JMP): changing the shading for one factor changes it for all &lt;U&gt;&lt;EM&gt;&lt;STRONG&gt;Fit Model&lt;/STRONG&gt;&lt;/EM&gt;&lt;/U&gt; confidence bands in that JMP session, so I chose light gray, a neutral, due to this issue.... so you would not see red bands with blue lines or vice versa.&amp;nbsp; JMP 12 has no shading so there is no issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not knowing your comfort level with JSL, the second method might be easier to manage.&amp;nbsp; Create an onlyAExpr, an onlyBExpr and a bothExpr using the second method as a template. For each, specify the preferred coloring.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Given your second post, I am attaching a script of alternate displays you might want to investigate, depending upon your goals for the analysis.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 19:57:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Changing-fit-line-color-while-using-fit-model/m-p/55495#M31386</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2018-04-25T19:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: Changing fit line color while using fit model</title>
      <link>https://community.jmp.com/t5/Discussions/Changing-fit-line-color-while-using-fit-model/m-p/55496#M31387</link>
      <description>&lt;P&gt;Try using the &lt;A href="https://www.jmp.com/support/help/14/properties-that-attach-information-to-column-val.shtml#459254" target="_self"&gt;Value Colors&lt;/A&gt; column property.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JMPScreenSnapz196.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/10499i5311D2F81F823B5B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JMPScreenSnapz196.png" alt="JMPScreenSnapz196.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;:Tool &amp;lt;&amp;lt; Set Property( "Value Colors", {"A" = "Red", "B" = "Blue"} );&lt;/CODE&gt;&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 19:35:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Changing-fit-line-color-while-using-fit-model/m-p/55496#M31387</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2018-04-25T19:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: Changing fit line color while using fit model</title>
      <link>https://community.jmp.com/t5/Discussions/Changing-fit-line-color-while-using-fit-model/m-p/55502#M31390</link>
      <description>&lt;P&gt;Jeff,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is cool.&amp;nbsp; Yes, this does force the line to be colored by the Value Colors().&amp;nbsp; I found that &lt;U&gt;&lt;STRONG&gt;Using JMP&lt;/STRONG&gt;&lt;/U&gt; documents that Value Colors()&amp;nbsp; is one of the column properties that "&lt;EM&gt;attach information that is used in reports and plots&lt;/EM&gt;" but it is not very specific. It would be nice to add what it does.&amp;nbsp; Note that :sex is a modeled factor, yet the points do not use it. So maybe another sentence or Tip of what it does vs. doesn't would be nice to have.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since this is related to Fit model, it would be nice if a colum's predicted and residuals would also use the associated table's Value Colors(), so that Leverage plots, etc. would use that coloring as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for documenting this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Thu, 26 Apr 2018 01:21:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Changing-fit-line-color-while-using-fit-model/m-p/55502#M31390</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2018-04-26T01:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: Changing fit line color while using fit model</title>
      <link>https://community.jmp.com/t5/Discussions/Changing-fit-line-color-while-using-fit-model/m-p/56026#M31440</link>
      <description>&lt;P&gt;Hello Morgan,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used your first method and it worked. Thanks a ton! I really needed the help.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Apr 2018 16:48:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Changing-fit-line-color-while-using-fit-model/m-p/56026#M31440</guid>
      <dc:creator>AnneMaryJoy</dc:creator>
      <dc:date>2018-04-27T16:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: Changing fit line color while using fit model</title>
      <link>https://community.jmp.com/t5/Discussions/Changing-fit-line-color-while-using-fit-model/m-p/56027#M31441</link>
      <description>&lt;P&gt;Hello Jeff,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your method worked as well! Thank you very much for the simple solution!&lt;/P&gt;</description>
      <pubDate>Fri, 27 Apr 2018 16:50:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Changing-fit-line-color-while-using-fit-model/m-p/56027#M31441</guid>
      <dc:creator>AnneMaryJoy</dc:creator>
      <dc:date>2018-04-27T16:50:41Z</dc:date>
    </item>
  </channel>
</rss>

