<?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 Y Function using data table values in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Y-Function-using-data-table-values/m-p/880151#M104381</link>
    <description>&lt;P&gt;I'm trying to build multiple graph boxes, each one plots a Y Function that takes values from a data table. This should be an easy task however I'm not able to get the plots to show in the graph boxes. It works with hard coded numbers, but not with values from a Data Table&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;win = New Window("window", vlb = V List Box());
For (i=1, i &amp;lt;= N Rows(dt), i++,
	vlb &amp;lt;&amp;lt; Append(Graph Box(Y Function((dt:M)[i] * x ,x)));
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Any help would be much appreciated&lt;/P&gt;</description>
    <pubDate>Tue, 17 Jun 2025 10:30:34 GMT</pubDate>
    <dc:creator>shuey</dc:creator>
    <dc:date>2025-06-17T10:30:34Z</dc:date>
    <item>
      <title>Y Function using data table values</title>
      <link>https://community.jmp.com/t5/Discussions/Y-Function-using-data-table-values/m-p/880151#M104381</link>
      <description>&lt;P&gt;I'm trying to build multiple graph boxes, each one plots a Y Function that takes values from a data table. This should be an easy task however I'm not able to get the plots to show in the graph boxes. It works with hard coded numbers, but not with values from a Data Table&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;win = New Window("window", vlb = V List Box());
For (i=1, i &amp;lt;= N Rows(dt), i++,
	vlb &amp;lt;&amp;lt; Append(Graph Box(Y Function((dt:M)[i] * x ,x)));
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Any help would be much appreciated&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jun 2025 10:30:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Y-Function-using-data-table-values/m-p/880151#M104381</guid>
      <dc:creator>shuey</dc:creator>
      <dc:date>2025-06-17T10:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: Y Function using data table values</title>
      <link>https://community.jmp.com/t5/Discussions/Y-Function-using-data-table-values/m-p/880164#M104382</link>
      <description>&lt;P&gt;If you look at the scripts that get created, you see that the values are not there&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1750157426355.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/77000i7355B5E20AF0904A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1750157426355.png" alt="jthi_0-1750157426355.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This is because you will have to evaluate them. Something like this should work&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = open("$SAMPLE_DATA/Big Class.jmp");
Column(dt, "height") &amp;lt;&amp;lt; Set Name("M");

nw = New Window("window", vlb = V List Box());
For Each Row(dt,
	Eval(EvalExpr(
		vlb &amp;lt;&amp;lt; Append(Graph Box(Y Function(Expr(dt[Row(), "M"]) * x ,x)));
	))
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;CODE class=" language-jsl"&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1750157594825.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/77001i5D138430DC26CFF8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1750157594825.png" alt="jthi_1-1750157594825.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also use for each row when looping over data table as it is meant for it&lt;CODE class=" language-jsl"&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE class=" language-jsl"&gt;&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jun 2025 10:53:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Y-Function-using-data-table-values/m-p/880164#M104382</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-06-17T10:53:29Z</dc:date>
    </item>
  </channel>
</rss>

