<?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 Custom function over limited x range? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Custom-function-over-limited-x-range/m-p/11447#M10974</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am adding a function to a graphic (e.g., fit y- by- x) via "Customize Graph": &lt;SPAN style="color: #032ce4;"&gt;Y Function&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;_function_of_x_&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt; x&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I limit the range of the x's that go into the function such that the function only plots over part of the range of the plot?&amp;nbsp; So if my x-axis spans from 0 to 100 I only want my function to plot say from x=&amp;nbsp; 50 to 100.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Mar 2015 17:07:09 GMT</pubDate>
    <dc:creator>KarenC</dc:creator>
    <dc:date>2015-03-17T17:07:09Z</dc:date>
    <item>
      <title>Custom function over limited x range?</title>
      <link>https://community.jmp.com/t5/Discussions/Custom-function-over-limited-x-range/m-p/11447#M10974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am adding a function to a graphic (e.g., fit y- by- x) via "Customize Graph": &lt;SPAN style="color: #032ce4;"&gt;Y Function&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;_function_of_x_&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt; x&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I limit the range of the x's that go into the function such that the function only plots over part of the range of the plot?&amp;nbsp; So if my x-axis spans from 0 to 100 I only want my function to plot say from x=&amp;nbsp; 50 to 100.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 17:07:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Custom-function-over-limited-x-range/m-p/11447#M10974</guid>
      <dc:creator>KarenC</dc:creator>
      <dc:date>2015-03-17T17:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: Custom function over limited x range?</title>
      <link>https://community.jmp.com/t5/Discussions/Custom-function-over-limited-x-range/m-p/11448#M10975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should be able to add an IF function around your "_function_of_x_". In other words:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Y Function( If( 50&amp;lt;x&amp;lt;100, _function_of_x_ ), x );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If x is not in that range, no value is produced.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 17:37:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Custom-function-over-limited-x-range/m-p/11448#M10975</guid>
      <dc:creator>hlrauch</dc:creator>
      <dc:date>2015-03-17T17:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: Custom function over limited x range?</title>
      <link>https://community.jmp.com/t5/Discussions/Custom-function-over-limited-x-range/m-p/11449#M10976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the optional Min() and Max() arguments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: Courier; color: #942193;"&gt;&lt;SPAN style="color: #000000;"&gt;dt &lt;/SPAN&gt;&lt;SPAN style="color: #011993;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #032ce4;"&gt;Open&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;"$SAMPLE_DATA/Big Class.jmp"&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #011993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: Courier;"&gt;biv &lt;SPAN style="color: #011993;"&gt;=&lt;/SPAN&gt; dt &lt;SPAN style="color: #011993;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;Bivariate&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;Y&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;:&lt;/SPAN&gt;Weight&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt; X&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;:&lt;/SPAN&gt;Height&lt;STRONG&gt;))&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: Courier;"&gt;&lt;SPAN style="color: #032ce4;"&gt;Report&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;biv&lt;STRONG&gt;)[&lt;/STRONG&gt;Framebox&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;)]&lt;/STRONG&gt; &lt;SPAN style="color: #011993;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;add graphics script&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;SPAN style="color: #032ce4;"&gt;Y Function&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #011993;"&gt;*&lt;/SPAN&gt; x &lt;SPAN style="color: #011993;"&gt;-&lt;/SPAN&gt; &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;90&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt; x&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="color: #032ce4;"&gt;Min&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;60&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="color: #032ce4;"&gt;Max&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;70&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;)))&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #011993;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 18:32:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Custom-function-over-limited-x-range/m-p/11449#M10976</guid>
      <dc:creator>ms</dc:creator>
      <dc:date>2015-03-17T18:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: Custom function over limited x range?</title>
      <link>https://community.jmp.com/t5/Discussions/Custom-function-over-limited-x-range/m-p/11450#M10977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excellent, both methods work as does&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Y Function (If ( (x&amp;gt;50) &amp;amp; (x&amp;lt;100), function_of_x,) x);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I like the Min/Max solution best as the parentheses structure is easier to follow (i.e., less prone to error).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Y Function (function_of_x, x, Min(a), Max(b));&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 20:20:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Custom-function-over-limited-x-range/m-p/11450#M10977</guid>
      <dc:creator>KarenC</dc:creator>
      <dc:date>2015-03-17T20:20:22Z</dc:date>
    </item>
  </channel>
</rss>

