<?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: Time binning - how to change the Tick labels? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Time-binning-how-to-change-the-Tick-labels/m-p/762899#M94327</link>
    <description>&lt;P&gt;You are right, besides being quite "ordinal", the values stay "continuous" - displayed on a continuous time scale.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would say:&amp;nbsp;&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;tick labels are for continuous variables&lt;/STRONG&gt;&lt;/EM&gt; as well:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_1-1717783793755.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/65002iC17C44CE178B8439/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_1-1717783793755.png" alt="hogi_1-1717783793755.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;... but quite unfortunately, the cool tick label settings to adjust the graph are missing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, the only way it to manually change the modeling type to ordinal/nominal of the created transform column.&lt;/P&gt;&lt;P&gt;But then:&lt;BR /&gt;- I lose the &lt;STRONG&gt;Label row nesting&lt;/STRONG&gt; functionality&lt;/P&gt;&lt;P&gt;:(&lt;/img&gt;- months with missing data will just be removed from the plot ( at least till&lt;LI-MESSAGE title="🙏 Column Property: Inclusive Values" uid="730865" url="https://community.jmp.com/t5/JMP-Wish-List/Column-Property-Inclusive-Values/m-p/730865#U730865" 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; is available ...) (*)&lt;BR /&gt;&lt;BR /&gt;At the moment, I think the only way is:&lt;/P&gt;&lt;P&gt;generate Year and month manually as ordinal values and then nest them on the x axis. [with issue (*)]&lt;/P&gt;&lt;P&gt;right?&lt;/P&gt;</description>
    <pubDate>Sat, 08 Jun 2024 14:07:23 GMT</pubDate>
    <dc:creator>hogi</dc:creator>
    <dc:date>2024-06-08T14:07:23Z</dc:date>
    <item>
      <title>Time binning - how to change the Tick labels?</title>
      <link>https://community.jmp.com/t5/Discussions/Time-binning-how-to-change-the-Tick-labels/m-p/762889#M94320</link>
      <description>&lt;P&gt;Among other&amp;nbsp;&lt;LI-MESSAGE title="Graphing Improvements - New in JMP 16" uid="417273" url="https://community.jmp.com/t5/Learning-Center/Graphing-Improvements-New-in-JMP-16/m-p/417273#U417273" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-tkb-thread lia-fa-icon lia-fa-tkb lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;, the new Time Bin (&amp;amp;Wrap) option is extremely useful:&lt;BR /&gt;Continuous values are binned and &lt;STRIKE&gt;represented as ordinal values&lt;/STRIKE&gt;. [edited]&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="hogi_0-1717775636621.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/64993i96D5D23E0955D0A8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1717775636621.png" alt="hogi_0-1717775636621.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only issue:&lt;BR /&gt;The axis and grid look a bit chaotic:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_5-1717775960472.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/64998i5614A19A0F612225/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_5-1717775960472.png" alt="hogi_5-1717775960472.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd prefer a more structured view like this one&amp;nbsp; - with &lt;STRONG&gt;long divider&lt;/STRONG&gt; and lower frame:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_6-1717776081956.png" style="width: 260px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/64999i2D4807CE2166C77E/image-dimensions/260x52?v=v2" width="260" height="52" role="button" title="hogi_6-1717776081956.png" alt="hogi_6-1717776081956.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but the settings for Tick labels and grids:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_2-1717775754495.png" style="width: 203px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/64995iA4EE7C9076A53128/image-dimensions/203x150?v=v2" width="203" height="150" role="button" title="hogi_2-1717775754495.png" alt="hogi_2-1717775754495.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;... are&amp;nbsp; missing in the GUI for Axis with Time Bin settings:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_3-1717775857585.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/64996i863EAE8B4D7D3A2E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_3-1717775857585.png" alt="hogi_3-1717775857585.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why?&lt;/P&gt;</description>
      <pubDate>Sun, 09 Jun 2024 06:58:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Time-binning-how-to-change-the-Tick-labels/m-p/762889#M94320</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-06-09T06:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: Time binning - how to change the Tick labels?</title>
      <link>https://community.jmp.com/t5/Discussions/Time-binning-how-to-change-the-Tick-labels/m-p/762892#M94322</link>
      <description>&lt;P&gt;Have you made sure your columns are nominal/ordinal (I think tick labels are for categorical variables)?&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.jmp.com/support/help/en/18.0/index.shtml#page/jmp/customize-axes-and-axis-labels-in-graphs.shtml#" target="_blank"&gt;https://www.jmp.com/support/help/en/18.0/index.shtml#page/jmp/customize-axes-and-axis-labels-in-graphs.shtml#&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2024 16:44:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Time-binning-how-to-change-the-Tick-labels/m-p/762892#M94322</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-06-07T16:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: Time binning - how to change the Tick labels?</title>
      <link>https://community.jmp.com/t5/Discussions/Time-binning-how-to-change-the-Tick-labels/m-p/762899#M94327</link>
      <description>&lt;P&gt;You are right, besides being quite "ordinal", the values stay "continuous" - displayed on a continuous time scale.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would say:&amp;nbsp;&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;tick labels are for continuous variables&lt;/STRONG&gt;&lt;/EM&gt; as well:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_1-1717783793755.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/65002iC17C44CE178B8439/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_1-1717783793755.png" alt="hogi_1-1717783793755.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;... but quite unfortunately, the cool tick label settings to adjust the graph are missing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, the only way it to manually change the modeling type to ordinal/nominal of the created transform column.&lt;/P&gt;&lt;P&gt;But then:&lt;BR /&gt;- I lose the &lt;STRONG&gt;Label row nesting&lt;/STRONG&gt; functionality&lt;/P&gt;&lt;P&gt;:(&lt;/img&gt;- months with missing data will just be removed from the plot ( at least till&lt;LI-MESSAGE title="🙏 Column Property: Inclusive Values" uid="730865" url="https://community.jmp.com/t5/JMP-Wish-List/Column-Property-Inclusive-Values/m-p/730865#U730865" 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; is available ...) (*)&lt;BR /&gt;&lt;BR /&gt;At the moment, I think the only way is:&lt;/P&gt;&lt;P&gt;generate Year and month manually as ordinal values and then nest them on the x axis. [with issue (*)]&lt;/P&gt;&lt;P&gt;right?&lt;/P&gt;</description>
      <pubDate>Sat, 08 Jun 2024 14:07:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Time-binning-how-to-change-the-Tick-labels/m-p/762899#M94327</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-06-08T14:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: Time binning - how to change the Tick labels?</title>
      <link>https://community.jmp.com/t5/Discussions/Time-binning-how-to-change-the-Tick-labels/m-p/762909#M94332</link>
      <description>&lt;P&gt;It seems like that is the only option you currently have (I haven''t tried if you could force those by scripting).&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2024 19:18:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Time-binning-how-to-change-the-Tick-labels/m-p/762909#M94332</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-06-07T19:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Time binning - how to change the Tick labels?</title>
      <link>https://community.jmp.com/t5/Discussions/Time-binning-how-to-change-the-Tick-labels/m-p/762914#M94334</link>
      <description>&lt;P&gt;For some seconds I thought that going via Time Bin could fix the issue with the too dynamic adjustment of the tick spacing in Graph builder:&amp;nbsp;&lt;LI-MESSAGE title="Heatmap - option: fixed Tick spacing (aggregation area)" uid="571486" url="https://community.jmp.com/t5/JMP-Wish-List/Heatmap-option-fixed-Tick-spacing-aggregation-area/m-p/571486#U571486" 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;BR /&gt;But clear: if it's just a transform column - and there is still the continuous axis scale, which is affected by the rescale bug.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Jun 2024 12:03:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Time-binning-how-to-change-the-Tick-labels/m-p/762914#M94334</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-06-08T12:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: Time binning - how to change the Tick labels?</title>
      <link>https://community.jmp.com/t5/Discussions/Time-binning-how-to-change-the-Tick-labels/m-p/762925#M94342</link>
      <description>&lt;P&gt;An Issue (1):&amp;nbsp;&lt;BR /&gt;The below code generates a graph like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1717848274119.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/65012i8AD5B913238B428F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1717848274119.png" alt="hogi_0-1717848274119.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately the&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Date Increment(., "Week", 0) = 01Jan0000;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;ruins the scale on the x axis.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Open( "$SAMPLE_DATA/Aircraft Incidents.jmp" );

:Event Date[1] = .;

Graph Builder(
	Transform Column(
		"Week[Event Date]",
		Format( "Format Pattern", "&amp;lt;MM&amp;gt;&amp;lt;/&amp;gt;&amp;lt;DD&amp;gt;&amp;lt;/&amp;gt;&amp;lt;YYYY&amp;gt;", 15 ),
		Formula( Date Increment( :Event Date, "Week", 0 ) )
	),
	Variables( X( :"Week[Event Date]"n ) ),
	Elements( Bar( X, Legend( 4 ) ) )
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;... so, one has to fix the formula manually via&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If(is missing(:Event Date), ., Date Increment( :Event Date, "Week", 0 ))&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 08 Jun 2024 16:48:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Time-binning-how-to-change-the-Tick-labels/m-p/762925#M94342</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-06-08T16:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: Time binning - how to change the Tick labels?</title>
      <link>https://community.jmp.com/t5/Discussions/Time-binning-how-to-change-the-Tick-labels/m-p/762929#M94343</link>
      <description>&lt;P&gt;If the user wants to bin by week - to get Plots for Year &amp;amp; week, there is another issue (#2):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;by default, JMP creates the binned date with the format DD / MM / YYYY.&lt;/P&gt;&lt;P&gt;So, instead of &lt;STRONG&gt;week&lt;/STRONG&gt;, still dates (with day and month) is used up as axis labels.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, how to tell JMP that the week should be used.&lt;BR /&gt;Plan A:&amp;nbsp;&lt;BR /&gt;- adjust the Format of the current axis - to use Week instead of day and month. and indeed, it works - but the user has to do the job for every single plot he wants to adjust.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Better:&lt;/STRONG&gt;&lt;BR /&gt;The user can directy change the Format of the column (see code below) - then the &lt;STRONG&gt;week&lt;/STRONG&gt;&amp;nbsp;also gets into the axis labels:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_2-1717851678064.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/65015i09313D64705478A1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_2-1717851678064.png" alt="hogi_2-1717851678064.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;even cooler: If the user enables nesting on the axis, JMP automatically shows the week AND the year - nested.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but wait - label nesting seems to have an issue with ISO Dates , Argh !!!&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-1717851022835.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/65013iD4D14F7556A0658A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1717851022835.png" alt="hogi_0-1717851022835.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why does the center plot show 2022 instead of 2023?!??!&lt;/P&gt;&lt;P&gt;Converting Week and Week2 to Format "Best" shows: both columns have the same entries. So, it's not an issue of the column, right?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Table( "test",
	Add Rows( 2 ),
	Compress File When Saved( 1 ),
	New Column( "date",
		Format( "d/m/y", 10 ),
		Set Values( [3768422400, 3797366400] )
	),
New Column( "Week[date]",
	Format( "Format Pattern", "&amp;lt;yyyy&amp;gt; cw&amp;lt;ww&amp;gt;", 15 ),
	Formula( Date Increment( :date, "Week", 0 ) )
),
New Column( "Week[date]_2",
	Format( "Format Pattern", "&amp;lt;DD&amp;gt;.&amp;lt;MM&amp;gt;.&amp;lt;YYYY&amp;gt;", 15 ),
	Formula( Date Increment( :date, "Week", 0 ) )
)
);

Graph Builder(
	Variables( X( :date ), X( :"Week[date]"n ),X( :"Week[date]_2"n ) ),
	Elements( Position( 1, 1 ), Points( X ) ),
	Elements( Position( 2, 1 ), Points( X ) ),
	Elements( Position( 3, 1 ), Points( X ) ),
	SendToReport(
		Dispatch( {}, "date", ScaleBox, {Label Row Nesting( 2 )} ),
		Dispatch( {}, "Week[date]", ScaleBox, {Label Row Nesting( 2 )} ),
		Dispatch( {}, "Week[date]_2", ScaleBox, {Label Row Nesting( 2 )} )
	)
);&lt;/CODE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;-&amp;gt;&amp;nbsp;&lt;LI-MESSAGE title="some improvements + bugfixes for nested binned time/date axes" uid="762949" url="https://community.jmp.com/t5/JMP-Wish-List/some-improvements-bugfixes-for-nested-binned-time-date-axes/m-p/762949#U762949" 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, 06 Aug 2024 15:19:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Time-binning-how-to-change-the-Tick-labels/m-p/762929#M94343</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-08-06T15:19:20Z</dc:date>
    </item>
  </channel>
</rss>

