<?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 How to remove a variable in Graph builder in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-remove-a-variable-in-Graph-builder/m-p/921372#M108007</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying in the script below to remove the variable&amp;nbsp; age in the X axis but I can't achieve to remove it this way, does anyone had the same issue ?&lt;/P&gt;
&lt;P&gt;Note: I know I could remove it with Remove variable(index) but I don't know in advance if this variable is in the graph, so I want to avoid accidentally deleting another graph via the index.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&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" );
gb = Graph Builder(
	Size( 528, 464 ),
	Show Control Panel( 0 ),
	Variables( X( :sex ), X( :age, Position( 1 ) ), Y( :height ), Color( :sex ) ),
	Elements( Points( X( 1 ), X( 2 ), Y, Legend( 17 ) ) )
);

wait(2);
gb &amp;lt;&amp;lt; Remove Variable( {:age, Role( "X" ), Position( 1 )} );
gb &amp;lt;&amp;lt; get variables();
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 26 Dec 2025 08:33:46 GMT</pubDate>
    <dc:creator>SophieCuvillier</dc:creator>
    <dc:date>2025-12-26T08:33:46Z</dc:date>
    <item>
      <title>How to remove a variable in Graph builder</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-remove-a-variable-in-Graph-builder/m-p/921372#M108007</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying in the script below to remove the variable&amp;nbsp; age in the X axis but I can't achieve to remove it this way, does anyone had the same issue ?&lt;/P&gt;
&lt;P&gt;Note: I know I could remove it with Remove variable(index) but I don't know in advance if this variable is in the graph, so I want to avoid accidentally deleting another graph via the index.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&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" );
gb = Graph Builder(
	Size( 528, 464 ),
	Show Control Panel( 0 ),
	Variables( X( :sex ), X( :age, Position( 1 ) ), Y( :height ), Color( :sex ) ),
	Elements( Points( X( 1 ), X( 2 ), Y, Legend( 17 ) ) )
);

wait(2);
gb &amp;lt;&amp;lt; Remove Variable( {:age, Role( "X" ), Position( 1 )} );
gb &amp;lt;&amp;lt; get variables();
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Dec 2025 08:33:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-remove-a-variable-in-Graph-builder/m-p/921372#M108007</guid>
      <dc:creator>SophieCuvillier</dc:creator>
      <dc:date>2025-12-26T08:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove a variable in Graph builder</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-remove-a-variable-in-Graph-builder/m-p/921386#M108008</link>
      <description>&lt;P&gt;Works when you add an&amp;nbsp; inner position as well:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;gb &amp;lt;&amp;lt; Remove Variable( {:age, Role( "X" ), Position( 1 ), Inner Position(1)} );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1766742902076.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/89698i01E0B22FD258C494/image-size/large?v=v2&amp;amp;px=999" role="button" title="hogi_0-1766742902076.png" alt="hogi_0-1766742902076.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Dec 2025 09:55:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-remove-a-variable-in-Graph-builder/m-p/921386#M108008</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-12-26T09:55:28Z</dc:date>
    </item>
  </channel>
</rss>

