<?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: How to order the x-axis of a Oneway Analyis by another column? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-order-the-x-axis-of-a-Oneway-Analyis-by-another-column/m-p/557069#M77083</link>
    <description>&lt;P&gt;You can see how to set the different Column Properties by setting them interactively, and then using&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;&amp;lt; get Property()&lt;/P&gt;
&lt;P&gt;retrieve what is required to use&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;&amp;lt; set Property()&lt;/P&gt;
&lt;P&gt;to use JSL to assign the values&lt;/P&gt;
&lt;P&gt;So I set the order for the lot_id column interactively&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1666040319686.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/46363i97474E5B160630AA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_0-1666040319686.png" alt="txnelson_0-1666040319686.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I then ran this script to get the structure required for the Value Ordering column property&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);
dt=current data table();

orderList = dt:lot_id &amp;lt;&amp;lt; get property("Value Order");

show(orderList);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;it returned&lt;/P&gt;
&lt;PRE&gt;orderList = {Custom Order({"lot09", "lot08", "lot07", "lot06", "lot05", "lot04", "lot03", "lot02", "lot01", "lot10", "lot11", "lot12", "lot13"}), Common Order(0)};&lt;/PRE&gt;
&lt;P&gt;Therefore, the JSL required to set the Value Order property is&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt:lot_id &amp;lt;&amp;lt; set property("Value Order", {Custom Order({"lot09", "lot08", "lot07", 
"lot06", "lot05", "lot04", "lot03", "lot02", 
"lot01", "lot10", "lot11", "lot12", "lot13"}), Common Order(0)});&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 17 Oct 2022 21:04:03 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2022-10-17T21:04:03Z</dc:date>
    <item>
      <title>How to order the x-axis of a Oneway Analyis by another column?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-order-the-x-axis-of-a-Oneway-Analyis-by-another-column/m-p/557053#M77082</link>
      <description>&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a typical JSL that makes graphs from a table with X-Y Oneway Analysis that defaults to ordering the X axis alphabetical/numerical.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On my graphs I want the top most value(in the table) to be the furthest to the right on my plots. I have been right clicking then "Edit Value Order" to do this, but I would like to incorporate it in my JSL for my colleagues to be able to use as well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I went into Scripting help but was lost as to how I would set Row Order Levels in JSL.&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="Hobbi_1-1666036801266.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/46362iCF3B7511B66A54D8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Hobbi_1-1666036801266.png" alt="Hobbi_1-1666036801266.png" /&gt;&lt;/span&gt;&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="Hobbi_0-1666036779509.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/46361i9443D6A53AF977AC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Hobbi_0-1666036779509.png" alt="Hobbi_0-1666036779509.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:28:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-order-the-x-axis-of-a-Oneway-Analyis-by-another-column/m-p/557053#M77082</guid>
      <dc:creator>Hobbi</dc:creator>
      <dc:date>2023-06-11T11:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to order the x-axis of a Oneway Analyis by another column?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-order-the-x-axis-of-a-Oneway-Analyis-by-another-column/m-p/557069#M77083</link>
      <description>&lt;P&gt;You can see how to set the different Column Properties by setting them interactively, and then using&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;&amp;lt; get Property()&lt;/P&gt;
&lt;P&gt;retrieve what is required to use&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;&amp;lt; set Property()&lt;/P&gt;
&lt;P&gt;to use JSL to assign the values&lt;/P&gt;
&lt;P&gt;So I set the order for the lot_id column interactively&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1666040319686.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/46363i97474E5B160630AA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_0-1666040319686.png" alt="txnelson_0-1666040319686.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I then ran this script to get the structure required for the Value Ordering column property&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);
dt=current data table();

orderList = dt:lot_id &amp;lt;&amp;lt; get property("Value Order");

show(orderList);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;it returned&lt;/P&gt;
&lt;PRE&gt;orderList = {Custom Order({"lot09", "lot08", "lot07", "lot06", "lot05", "lot04", "lot03", "lot02", "lot01", "lot10", "lot11", "lot12", "lot13"}), Common Order(0)};&lt;/PRE&gt;
&lt;P&gt;Therefore, the JSL required to set the Value Order property is&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt:lot_id &amp;lt;&amp;lt; set property("Value Order", {Custom Order({"lot09", "lot08", "lot07", 
"lot06", "lot05", "lot04", "lot03", "lot02", 
"lot01", "lot10", "lot11", "lot12", "lot13"}), Common Order(0)});&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 17 Oct 2022 21:04:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-order-the-x-axis-of-a-Oneway-Analyis-by-another-column/m-p/557069#M77083</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2022-10-17T21:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to order the x-axis of a Oneway Analyis by another column?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-order-the-x-axis-of-a-Oneway-Analyis-by-another-column/m-p/557260#M77096</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/33390"&gt;@Hobbi&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt; gave you the exact correct answer. &lt;/P&gt;
&lt;P&gt;Yet, the best ordering options for an axis in a graph are available in Graph builder. There, you can order a categorical axis by a variety of summary statistics of other variables. as in the pictures.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let us know if it works in for your application.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="111.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/46366iB9FCA012CFCBEAB6/image-size/large?v=v2&amp;amp;px=999" role="button" title="111.png" alt="111.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="222.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/46367iF044AE1D523347AB/image-size/large?v=v2&amp;amp;px=999" role="button" title="222.png" alt="222.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 11:38:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-order-the-x-axis-of-a-Oneway-Analyis-by-another-column/m-p/557260#M77096</guid>
      <dc:creator>ron_horne</dc:creator>
      <dc:date>2022-10-18T11:38:32Z</dc:date>
    </item>
  </channel>
</rss>

