<?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: SHAP Values on Graph Builder- Ascending order in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/SHAP-Values-on-Graph-Builder-Ascending-order/m-p/801364#M97701</link>
    <description>&lt;P&gt;In JMP there are always multiple ways to get where you want : )&lt;BR /&gt;Another alternative: sort the columns with ascending order of the values.&lt;BR /&gt;When you know the order, this can easily be done via "group".&lt;BR /&gt;&lt;BR /&gt;Just open Graph builder and drag the group "sorted" onto the Y axis.&lt;BR /&gt;Up to 14 columns are possible till JMP changes the mode to "parallel plot".&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to HERE(1);

showN Cols = 14;
Try(close(dt, noSave));
dt = Open( "$SAMPLE_DATA/Semiconductor Capability.jmp" );


dtstacked = dt  &amp;lt;&amp;lt; Stack(
	columns( Column Group( "Processes" ) ));
	
mysummary = dtstacked  &amp;lt;&amp;lt; Summary(Group( :Label ),Median( :Processes ));

sorted = mysummary &amp;lt;&amp;lt; Sort( By( :"Median(Processes)"n ), Order( Descending ) );

mycols = sorted[1::showNCols,"Label"];
dt &amp;lt;&amp;lt; Group Columns( "sorted", mycols );&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 23 Sep 2024 19:03:18 GMT</pubDate>
    <dc:creator>hogi</dc:creator>
    <dc:date>2024-09-23T19:03:18Z</dc:date>
    <item>
      <title>SHAP Values on Graph Builder- Ascending order</title>
      <link>https://community.jmp.com/t5/Discussions/SHAP-Values-on-Graph-Builder-Ascending-order/m-p/801351#M97698</link>
      <description>&lt;P&gt;I am in the process of graphing SHAP Values from the profiler. As you can see on the image, the SHAP values are not in either ascending order or descending order? First, how do I instruct for the graph builder to graph the scatter plot/beeswarm plot to output in ascending order for all of the independent variables (together) in one plot? This way, I can look at one plot that shows the variable with the highest impact compared to all others.&lt;/P&gt;&lt;P&gt;Second, is there a way to change the legend so it shows there's a continuum for the legend instead of a marker? The continuum should go from high to low shap values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Nisha&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2024 17:32:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/SHAP-Values-on-Graph-Builder-Ascending-order/m-p/801351#M97698</guid>
      <dc:creator>NishaKumar2023</dc:creator>
      <dc:date>2024-09-23T17:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: SHAP Values on Graph Builder- Ascending order</title>
      <link>https://community.jmp.com/t5/Discussions/SHAP-Values-on-Graph-Builder-Ascending-order/m-p/801362#M97699</link>
      <description>&lt;P&gt;Is is OK for you to stack the data?&lt;BR /&gt;Then you can use "order by" via a manually calculated column:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1727114434025.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/68535i4ADC57E3E80BA663/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1727114434025.png" alt="hogi_0-1727114434025.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Semiconductor Capability.jmp" );
dtstacked = dt  &amp;lt;&amp;lt; Stack(
	columns( Column Group( "Processes" ) ));

dtstacked &amp;lt;&amp;lt; New Column( "median",
	Formula( Col Quantile( :Processes, 0.5, :Label ) ),

)	;
	
	
dtstacked&amp;lt;&amp;lt; 	Graph Builder(
	Variables( X( :Processes ), Y( :Label, Order By( :median ) ) ),
	Elements( Box Plot( X, Y, Legend( 13 ) ) ),
	Local Data Filter(
		Add Filter(
			columns( :Label ),
			Where( :Label == {"A1", "A2N", "A2P", "A2P1", "B1", "B10", "CAP"} )
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2024 18:01:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/SHAP-Values-on-Graph-Builder-Ascending-order/m-p/801362#M97699</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-09-23T18:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: SHAP Values on Graph Builder- Ascending order</title>
      <link>https://community.jmp.com/t5/Discussions/SHAP-Values-on-Graph-Builder-Ascending-order/m-p/801363#M97700</link>
      <description>&lt;P&gt;Thank you, I will try this. I was hoping to be able to construct this using the graph builder itself, but its looking less possible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2024 18:30:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/SHAP-Values-on-Graph-Builder-Ascending-order/m-p/801363#M97700</guid>
      <dc:creator>NishaKumar2023</dc:creator>
      <dc:date>2024-09-23T18:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: SHAP Values on Graph Builder- Ascending order</title>
      <link>https://community.jmp.com/t5/Discussions/SHAP-Values-on-Graph-Builder-Ascending-order/m-p/801364#M97701</link>
      <description>&lt;P&gt;In JMP there are always multiple ways to get where you want : )&lt;BR /&gt;Another alternative: sort the columns with ascending order of the values.&lt;BR /&gt;When you know the order, this can easily be done via "group".&lt;BR /&gt;&lt;BR /&gt;Just open Graph builder and drag the group "sorted" onto the Y axis.&lt;BR /&gt;Up to 14 columns are possible till JMP changes the mode to "parallel plot".&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to HERE(1);

showN Cols = 14;
Try(close(dt, noSave));
dt = Open( "$SAMPLE_DATA/Semiconductor Capability.jmp" );


dtstacked = dt  &amp;lt;&amp;lt; Stack(
	columns( Column Group( "Processes" ) ));
	
mysummary = dtstacked  &amp;lt;&amp;lt; Summary(Group( :Label ),Median( :Processes ));

sorted = mysummary &amp;lt;&amp;lt; Sort( By( :"Median(Processes)"n ), Order( Descending ) );

mycols = sorted[1::showNCols,"Label"];
dt &amp;lt;&amp;lt; Group Columns( "sorted", mycols );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 Sep 2024 19:03:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/SHAP-Values-on-Graph-Builder-Ascending-order/m-p/801364#M97701</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-09-23T19:03:18Z</dc:date>
    </item>
  </channel>
</rss>

