<?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: Graph Builder: removing empty sub-graphs using JSL in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Graph-Builder-removing-empty-sub-graphs-using-JSL/m-p/736160#M91683</link>
    <description>&lt;P&gt;I would do it using a local data filter.&amp;nbsp; You can script this specific example as follows:&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 = Data Table( "Big Class" );
thenames = dt:name[(dt &amp;lt;&amp;lt; Get Rows Where( Is Missing( :height ) ))];
Graph Builder(
	Size( 857, 534 ),
	Show Control Panel( 0 ),
	Variables( Y( :height ), Group X( :name ) ),
	Elements( Histogram( Y, Legend( 4 ) ) ),
	Local Data Filter(
		Inverse( 1 ),
		Add Filter(
			columns( :name ),
			Where( :name == thenames ),
			Display( :name, N Items( 15 ), Find( Set Text( "" ) ) )
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;It's also easy to do with the menus in Graph Builder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mmarchandTSI_0-1710795434869.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/62317iB722568C816A7243/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mmarchandTSI_0-1710795434869.png" alt="mmarchandTSI_0-1710795434869.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Mar 2024 20:57:22 GMT</pubDate>
    <dc:creator>mmarchandTSI</dc:creator>
    <dc:date>2024-03-18T20:57:22Z</dc:date>
    <item>
      <title>Graph Builder: removing empty sub-graphs using JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-removing-empty-sub-graphs-using-JSL/m-p/735701#M91675</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using JSL to produce graph builder plots. These plots are plotted against one or multiple variables. The problem is that sometimes, graph builder produces empty plot with no value. Is there are a method to remove those empty sub-graphs? For a better understanding of the problem, I have attached an example. In the example, ALICE, DAVID, ..etc. have empty plots. Those are the one I'm trying to remove using JSL script.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm thinking of using the Empty() OR Is Missing() function to check if a specific cell is empty, don't plot it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is that is there are a way to select that specific cell and remove it from the plot ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks you !&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RA899_0-1710787592486.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/62309i0735E437425FB82F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RA899_0-1710787592486.png" alt="RA899_0-1710787592486.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2024 18:54:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-removing-empty-sub-graphs-using-JSL/m-p/735701#M91675</guid>
      <dc:creator>RA899</dc:creator>
      <dc:date>2024-03-18T18:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Builder: removing empty sub-graphs using JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-removing-empty-sub-graphs-using-JSL/m-p/736157#M91681</link>
      <description>&lt;P&gt;at the table level, you might try to select cells that are empty and set them to hidden and excluded&lt;/P&gt;
&lt;P&gt;if(is missing()==1...&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2024 20:53:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-removing-empty-sub-graphs-using-JSL/m-p/736157#M91681</guid>
      <dc:creator>Byron_JMP</dc:creator>
      <dc:date>2024-03-18T20:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Builder: removing empty sub-graphs using JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-removing-empty-sub-graphs-using-JSL/m-p/736158#M91682</link>
      <description>&lt;P&gt;If you know which values will be empty, you can add Where statement to your Graph Builder message to filter those out. Or you can add hidden local data filter to hide those&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2024 20:57:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-removing-empty-sub-graphs-using-JSL/m-p/736158#M91682</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-03-18T20:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Builder: removing empty sub-graphs using JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-removing-empty-sub-graphs-using-JSL/m-p/736160#M91683</link>
      <description>&lt;P&gt;I would do it using a local data filter.&amp;nbsp; You can script this specific example as follows:&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 = Data Table( "Big Class" );
thenames = dt:name[(dt &amp;lt;&amp;lt; Get Rows Where( Is Missing( :height ) ))];
Graph Builder(
	Size( 857, 534 ),
	Show Control Panel( 0 ),
	Variables( Y( :height ), Group X( :name ) ),
	Elements( Histogram( Y, Legend( 4 ) ) ),
	Local Data Filter(
		Inverse( 1 ),
		Add Filter(
			columns( :name ),
			Where( :name == thenames ),
			Display( :name, N Items( 15 ), Find( Set Text( "" ) ) )
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;It's also easy to do with the menus in Graph Builder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mmarchandTSI_0-1710795434869.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/62317iB722568C816A7243/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mmarchandTSI_0-1710795434869.png" alt="mmarchandTSI_0-1710795434869.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2024 20:57:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-removing-empty-sub-graphs-using-JSL/m-p/736160#M91683</guid>
      <dc:creator>mmarchandTSI</dc:creator>
      <dc:date>2024-03-18T20:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Builder: removing empty sub-graphs using JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-removing-empty-sub-graphs-using-JSL/m-p/736165#M91685</link>
      <description>&lt;P&gt;The numeric data filter has a &lt;EM&gt;Select Missing&lt;/EM&gt; option that would let you filter without having to convert to names.&amp;nbsp; This will also show the filter where-clause in Graph Builder, which is really similar to the suggestion of &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp;of directly adding a Where-clause to the Graph Builder launch.&amp;nbsp; The main advantage of the filter is that you can toggle back and forth.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open("$SAMPLE_DATA/Big Class.jmp");
dt &amp;lt;&amp;lt; Graph Builder(
	Size( 857, 534 ),
	Show Control Panel( 0 ),
	Variables( Y( :height ), Group X( :name ) ),
	Elements( Histogram( Y, Legend( 4 ) ) ),
	Local Data Filter(
		Inverse( 1 ),
		Add Filter( columns( :height ), Select Missing( :height ) )
	)
);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 18 Mar 2024 21:22:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-removing-empty-sub-graphs-using-JSL/m-p/736165#M91685</guid>
      <dc:creator>danschikore</dc:creator>
      <dc:date>2024-03-18T21:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Builder: removing empty sub-graphs using JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-removing-empty-sub-graphs-using-JSL/m-p/736275#M91708</link>
      <description>&lt;P&gt;The issue with Inverse(1) and Select Missing:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The &lt;FONT face="courier new,courier"&gt;Inverse(1)&lt;/FONT&gt; acts on the WHOLE selection of the Data filter, not just on a specific item.&lt;/P&gt;&lt;P&gt;Which means: It's not possible to combine this approach with additional filters.&lt;/P&gt;&lt;P&gt;e.g. NOT possible to select:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;- inverse of (missing height values)&lt;/P&gt;&lt;P&gt;- sex = "M"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe, in a future release of Jmp (&amp;gt; 18) there will be an option "not" to "invert" individual parts of the data filter:&lt;BR /&gt;&lt;LI-MESSAGE title="data filters, new option: &amp;quot;not&amp;quot;" uid="570904" url="https://community.jmp.com/t5/JMP-Wish-List/data-filters-new-option-quot-not-quot/m-p/570904#U570904" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-idea-thread lia-fa-icon lia-fa-idea lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2024 12:09:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-removing-empty-sub-graphs-using-JSL/m-p/736275#M91708</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-03-19T12:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Builder: removing empty sub-graphs using JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-removing-empty-sub-graphs-using-JSL/m-p/736290#M91713</link>
      <description>&lt;P&gt;That feature is already there.&lt;/P&gt;
&lt;P&gt;Instead of using "AND" in the local data filter, use "OR".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this case I have missing height data, and a column with an indicator for missing height.&lt;/P&gt;
&lt;P&gt;In the filter I can do this : &amp;nbsp;Where((sex = F) &lt;FONT size="5"&gt;&lt;U&gt;&lt;STRONG&gt;or&lt;/STRONG&gt;&lt;/U&gt;&lt;/FONT&gt; (height missing Indicator = 1))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Byron_JMP_0-1710851673405.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/62344i664917A18D278463/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Byron_JMP_0-1710851673405.png" alt="Byron_JMP_0-1710851673405.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2024 12:36:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-removing-empty-sub-graphs-using-JSL/m-p/736290#M91713</guid>
      <dc:creator>Byron_JMP</dc:creator>
      <dc:date>2024-03-19T12:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Builder: removing empty sub-graphs using JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-removing-empty-sub-graphs-using-JSL/m-p/736454#M91724</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/4386"&gt;@Byron_JMP&lt;/a&gt;&amp;nbsp;sorry, the solution doesn't seem to fit to:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;show me all data points which fulfill:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1)&amp;nbsp; &lt;STRONG&gt;non&lt;/STRONG&gt;-missing data -&amp;gt; inverse of (missing height values)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;AND&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2) sex = "M"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;maybe with an "inverse" around it ...&lt;BR /&gt;one could generate a suitable data filter for this special case - and every user with a PhD in&amp;nbsp;set operation logic will love it.&lt;BR /&gt;&lt;BR /&gt;For a versatile, smooth and easy user interface, I am desperately waiting for the Jmp version with the "not" option - which will allow:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1710866372306.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/62373i81A2AD6A2647F4F0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1710866372306.png" alt="hogi_0-1710866372306.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2024 16:41:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-removing-empty-sub-graphs-using-JSL/m-p/736454#M91724</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-03-19T16:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Builder: removing empty sub-graphs using JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-removing-empty-sub-graphs-using-JSL/m-p/736456#M91725</link>
      <description>&lt;P&gt;You can always invert the inverted selection.&amp;nbsp; But I agree with your request here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mmarchandTSI_0-1710866996737.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/62374iA1F8BA6BA9CF6749/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mmarchandTSI_0-1710866996737.png" alt="mmarchandTSI_0-1710866996737.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2024 16:50:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-removing-empty-sub-graphs-using-JSL/m-p/736456#M91725</guid>
      <dc:creator>mmarchandTSI</dc:creator>
      <dc:date>2024-03-19T16:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Builder: removing empty sub-graphs using JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-removing-empty-sub-graphs-using-JSL/m-p/736478#M91727</link>
      <description>&lt;P&gt;the key to making solution work is adding a column with the formula: &amp;nbsp;is missing(:column name)&lt;/P&gt;
&lt;P&gt;this returns a 0 or a 1 in the formula column. 0 = not missing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Indicator columns are your friend.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2024 17:31:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-removing-empty-sub-graphs-using-JSL/m-p/736478#M91727</guid>
      <dc:creator>Byron_JMP</dc:creator>
      <dc:date>2024-03-19T17:31:11Z</dc:date>
    </item>
  </channel>
</rss>

