<?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 Input string variable that is the header for the column, and plot that column as Y axis in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Input-string-variable-that-is-the-header-for-the-column-and-plot/m-p/385541#M63564</link>
    <description>&lt;P&gt;I am trying to manually input a string variable that matches to one of the header of the columns so I can plot specifically choose column to plot on Y axis as needed. My script is below, but it doesn't seem to work. Hope someone can help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;User_Input = New Window( "Enter Lot Number",
	&amp;lt;&amp;lt;modal(),
	H List Box(
		Text Box( "Enter Lot Number:" ),
		lot_num_teb = Text Edit Box( "", &amp;lt;&amp;lt;set width( 200 ) ),

	),
	Text Box( "Click OK to save" ),
	Button Box( "OK", lot_num = lot_num_teb &amp;lt;&amp;lt; get text() ), 

);


Linearity_Plot &amp;lt;&amp;lt; Graph Builder(
	Variables(
		X( :Tape value ),
		Y( :Name( "Historical - 1s" ) ),
		Y( :Name( "Historical + 1s" ), Position( 1 ) ),
		Y( :Name( "Historical - 2s" ), Position( 1 ) ),
		Y( :Name( "Historical + 2s" ), Position( 1 ) ),
		Y( :lot_num, Position( 1 ) ),
		Page( :Feature )
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 09 Jun 2023 19:46:53 GMT</pubDate>
    <dc:creator>aaronjiang</dc:creator>
    <dc:date>2023-06-09T19:46:53Z</dc:date>
    <item>
      <title>Input string variable that is the header for the column, and plot that column as Y axis</title>
      <link>https://community.jmp.com/t5/Discussions/Input-string-variable-that-is-the-header-for-the-column-and-plot/m-p/385541#M63564</link>
      <description>&lt;P&gt;I am trying to manually input a string variable that matches to one of the header of the columns so I can plot specifically choose column to plot on Y axis as needed. My script is below, but it doesn't seem to work. Hope someone can help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;User_Input = New Window( "Enter Lot Number",
	&amp;lt;&amp;lt;modal(),
	H List Box(
		Text Box( "Enter Lot Number:" ),
		lot_num_teb = Text Edit Box( "", &amp;lt;&amp;lt;set width( 200 ) ),

	),
	Text Box( "Click OK to save" ),
	Button Box( "OK", lot_num = lot_num_teb &amp;lt;&amp;lt; get text() ), 

);


Linearity_Plot &amp;lt;&amp;lt; Graph Builder(
	Variables(
		X( :Tape value ),
		Y( :Name( "Historical - 1s" ) ),
		Y( :Name( "Historical + 1s" ), Position( 1 ) ),
		Y( :Name( "Historical - 2s" ), Position( 1 ) ),
		Y( :Name( "Historical + 2s" ), Position( 1 ) ),
		Y( :lot_num, Position( 1 ) ),
		Page( :Feature )
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Jun 2023 19:46:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Input-string-variable-that-is-the-header-for-the-column-and-plot/m-p/385541#M63564</guid>
      <dc:creator>aaronjiang</dc:creator>
      <dc:date>2023-06-09T19:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: Input string variable that is the header for the column, and plot that column as Y axis</title>
      <link>https://community.jmp.com/t5/Discussions/Input-string-variable-that-is-the-header-for-the-column-and-plot/m-p/385546#M63565</link>
      <description>&lt;P&gt;You need to tell JMP to use the string/character variable lot_num to use it as a column.&amp;nbsp; To do this, use the&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;As Column()&lt;/P&gt;
&lt;P&gt;function&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;User_Input = New Window( "Enter Lot Number",
	&amp;lt;&amp;lt;modal(),
	H List Box(
		Text Box( "Enter Lot Number:" ),
		lot_num_teb = Text Edit Box( "", &amp;lt;&amp;lt;set width( 200 ) ),

	),
	Text Box( "Click OK to save" ),
	Button Box( "OK", lot_num = lot_num_teb &amp;lt;&amp;lt; get text() ), 

);


Linearity_Plot &amp;lt;&amp;lt; Graph Builder(
	Variables(
		X( :Tape value ),
		Y( :Name( "Historical - 1s" ) ),
		Y( :Name( "Historical + 1s" ), Position( 1 ) ),
		Y( :Name( "Historical - 2s" ), Position( 1 ) ),
		Y( :Name( "Historical + 2s" ), Position( 1 ) ),
		Y( as column( lot_num ), Position( 1 ) ),
		Page( :Feature )
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 15 May 2021 08:00:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Input-string-variable-that-is-the-header-for-the-column-and-plot/m-p/385546#M63565</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-05-15T08:00:47Z</dc:date>
    </item>
  </channel>
</rss>

