<?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: Changing bin size for Group X variable for each level in graph builder in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Changing-bin-size-for-Group-X-variable-for-each-level-in-graph/m-p/247718#M48629</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;A possible work around would be to create a new ordinal character column with the specific bins you need with a formula (see below)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If(
	:Var3 &amp;lt;= 10, "0-10",
	10 &amp;lt; :Var3 &amp;lt;= 15, "11-15",
	15 &amp;lt; :Var3 &amp;lt;= 40, "16-40",
	"N/A"
)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Of note, you cannot have bin boundaries that overlap like suggested (i.e. 0-10 and 10-15)&lt;/P&gt;</description>
    <pubDate>Mon, 17 Feb 2020 14:05:27 GMT</pubDate>
    <dc:creator>Thierry_S</dc:creator>
    <dc:date>2020-02-17T14:05:27Z</dc:date>
    <item>
      <title>Changing bin size for Group X variable for each level in graph builder</title>
      <link>https://community.jmp.com/t5/Discussions/Changing-bin-size-for-Group-X-variable-for-each-level-in-graph/m-p/247716#M48627</link>
      <description>&lt;P&gt;I have created a chart in graph builder using jsl script below.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Data Table("Untitled 11967")&amp;lt;&amp;lt;Graph Builder(
		Automatic Recalc( 0 ),
		Variables( X( :var1 ), Y( :var2 ), Group X(:var3), Group Y(:var4)));&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Here var3 is numeric continuous and var4 is numeric nominal. var4 just counts the number of times var3 value is occurring.&lt;/P&gt;&lt;P&gt;How can I change the number of levels for Group X variable in JSL? Also how can I set the binning for each level? Image below shows 3 levels which I set manually by right clicking on var3 and setting No of Level value to 3. But I want 3 levels 0-10, 10-15, 15-40 to group the counts in var4. How can I script it in JSL?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rverma_0-1581790564049.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/21765i0F4C80B3FDA92B0C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rverma_0-1581790564049.png" alt="rverma_0-1581790564049.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rverma_3-1581791328068.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/21769i230452C3FCC637E4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rverma_3-1581791328068.png" alt="rverma_3-1581791328068.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any guidance will be highly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 15 Feb 2020 18:31:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Changing-bin-size-for-Group-X-variable-for-each-level-in-graph/m-p/247716#M48627</guid>
      <dc:creator>rverma</dc:creator>
      <dc:date>2020-02-15T18:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: Changing bin size for Group X variable for each level in graph builder</title>
      <link>https://community.jmp.com/t5/Discussions/Changing-bin-size-for-Group-X-variable-for-each-level-in-graph/m-p/247718#M48629</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;A possible work around would be to create a new ordinal character column with the specific bins you need with a formula (see below)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If(
	:Var3 &amp;lt;= 10, "0-10",
	10 &amp;lt; :Var3 &amp;lt;= 15, "11-15",
	15 &amp;lt; :Var3 &amp;lt;= 40, "16-40",
	"N/A"
)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Of note, you cannot have bin boundaries that overlap like suggested (i.e. 0-10 and 10-15)&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2020 14:05:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Changing-bin-size-for-Group-X-variable-for-each-level-in-graph/m-p/247718#M48629</guid>
      <dc:creator>Thierry_S</dc:creator>
      <dc:date>2020-02-17T14:05:27Z</dc:date>
    </item>
  </channel>
</rss>

