<?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: Plot time dependent nominal character with graph builder in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Plot-time-dependent-nominal-character-data-with-graph-builder/m-p/582394#M78892</link>
    <description>&lt;P&gt;Concerning the&amp;nbsp; feature/bug with axis rescale:&lt;BR /&gt;&lt;BR /&gt;After running the below code, you will get this plot:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1671179161366.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/48353i5D5C60D409B5D93F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1671179161366.png" alt="hogi_0-1671179161366.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If you want to get rid of the empty area on the right and drag the end of the x axis slightly too far or if you just zoom in to the data),&lt;BR /&gt;the graph will flip to this one:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_1-1671181542206.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/48354i4845D529DEE9DD04/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_1-1671181542206.png" alt="hogi_1-1671181542206.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$DOWNLOADS/Dummy data.jmp" );

stacked = dt &amp;lt;&amp;lt; Stack(
	columns( :Machine 1, :Machine 2, :Machine 3 ),
	Source Label Column( "Label" ),
	Stacked Data Column( "Data" )
);

stacked  &amp;lt;&amp;lt; Graph Builder(
	Size( 1175, 386 ),
	Show Control Panel( 0 ),
	Summary Statistic( "Median" ),
	Graph Spacing( 4 ),
	Variables( X( :Date Time ), Y( :Data ), Group Y( :Label ), Color( :Data ) ),
	Elements( Heatmap( X, Y, Legend( 5 ) ) ),
	SendToReport(
		Dispatch(
			{},
			"Date Time",
			ScaleBox,
			{Interval( "Hour" ),
			Inc( 1 ), Minor Ticks( 3 )}
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 16 Dec 2022 09:05:53 GMT</pubDate>
    <dc:creator>hogi</dc:creator>
    <dc:date>2022-12-16T09:05:53Z</dc:date>
    <item>
      <title>Plot time dependent nominal character data with graph builder</title>
      <link>https://community.jmp.com/t5/Discussions/Plot-time-dependent-nominal-character-data-with-graph-builder/m-p/580397#M78748</link>
      <description>&lt;P&gt;Initial conditions:&lt;/P&gt;&lt;P&gt;- Using JMP 16.0&lt;/P&gt;&lt;P&gt;- Scripting suggestions are ok&lt;/P&gt;&lt;P&gt;- I have tried things with Graph Builder, but I have nothing worth showing...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question:&lt;/P&gt;&lt;P&gt;I have time-dependent character data (I can make its modeling type "ordinal") that I am trying to visualize with Graph Builder without modifying it's data type.&amp;nbsp; As an example: I monitor the state of some equipment in my lab, and it reports that it is found in one of three states (Idle, Faulted, Running) while it is in use as time goes on.&amp;nbsp; &lt;STRONG&gt;Can Graph Builder be made to "plot" these three states without me having to give each state a numerical value...?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BTW&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;, thanks for your 10-point suggestions on how to get helpful answers :)&lt;/img&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:30:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Plot-time-dependent-nominal-character-data-with-graph-builder/m-p/580397#M78748</guid>
      <dc:creator>GreenisBTFL</dc:creator>
      <dc:date>2023-06-11T11:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: Plot time dependent nominal character with graph builder</title>
      <link>https://community.jmp.com/t5/Discussions/Plot-time-dependent-nominal-character-data-with-graph-builder/m-p/580491#M78755</link>
      <description>&lt;P&gt;If I'm understanding you correctly, the Line tool in Graph builder will connect categorical items to make a plot. Example below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jed_Campbell_2-1670875678951.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/48211i94CB4B0EEC936062/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jed_Campbell_2-1670875678951.png" alt="Jed_Campbell_2-1670875678951.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 20:08:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Plot-time-dependent-nominal-character-data-with-graph-builder/m-p/580491#M78755</guid>
      <dc:creator>Jed_Campbell</dc:creator>
      <dc:date>2022-12-12T20:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: Plot time dependent nominal character with graph builder</title>
      <link>https://community.jmp.com/t5/Discussions/Plot-time-dependent-nominal-character-data-with-graph-builder/m-p/581150#M78802</link>
      <description>&lt;P&gt;This looks great as a start... thank you very much!&amp;nbsp; I am, however, having problems when adding multiple columns of these types on the same graph. The axes do not merge, even though the axis values are the same for all data points.&amp;nbsp; Also, the plotted line seems to be a statistical quantity of the three columns I'm using in the graph.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what I'm getting:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GreenisBTFL_4-1670953794870.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/48271i33798C6AA4607E31/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GreenisBTFL_4-1670953794870.png" alt="GreenisBTFL_4-1670953794870.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what I would like to see as a plot (example below doesn't necessarily match my dummy data):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GreenisBTFL_3-1670953429385.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/48270i7CEE404345D2A443/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GreenisBTFL_3-1670953429385.png" alt="GreenisBTFL_3-1670953429385.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've included dummy data to aid in this discussion.&amp;nbsp; Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2022 17:54:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Plot-time-dependent-nominal-character-data-with-graph-builder/m-p/581150#M78802</guid>
      <dc:creator>GreenisBTFL</dc:creator>
      <dc:date>2022-12-13T17:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: Plot time dependent nominal character with graph builder</title>
      <link>https://community.jmp.com/t5/Discussions/Plot-time-dependent-nominal-character-data-with-graph-builder/m-p/581176#M78804</link>
      <description>&lt;P&gt;The problem is the structure of the data. You want to plot a variable called "Machine" that is not in the table. Stack your three machine columns so that you have a variable identifying the machines&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dan_Obermiller_2-1670960295682.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/48278iF1BA1384A53330BC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dan_Obermiller_2-1670960295682.png" alt="Dan_Obermiller_2-1670960295682.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(completed data table attached). I put the data into a column called "Status". Now drag status to the Y-axis. Time goes to the X-axis. Choose the line plot and click on the "Row Order" checkbox. Now drag Machine to the Overlay field. The results of your example file are below.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled - Graph Builder.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/48277iC3C87713B78A8583/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Untitled - Graph Builder.png" alt="Untitled - Graph Builder.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This has another advantage of allowing you put the Machine into a Local Data Filter role rather than the Overlay. You can then select each machine to see them individually on the plot or use the Shift key to put multiple machines on the graph. This was easier for me to see since there is so much overlap on the three machines.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2022 20:09:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Plot-time-dependent-nominal-character-data-with-graph-builder/m-p/581176#M78804</guid>
      <dc:creator>Dan_Obermiller</dc:creator>
      <dc:date>2022-12-13T20:09:37Z</dc:date>
    </item>
    <item>
      <title>Re: Plot time dependent nominal character with graph builder</title>
      <link>https://community.jmp.com/t5/Discussions/Plot-time-dependent-nominal-character-data-with-graph-builder/m-p/581182#M78806</link>
      <description>&lt;P&gt;As I looked at my picture I did notice a few issues with your dummy data which could be real artifacts in your data.&lt;/P&gt;
&lt;P&gt;I noticed that the plot for machine 1 "went backwards" on the x-axis. That is because of the change of daylight savings time as the 1:00 am hour on November 6 is repeated. It does not obviously affect Machine 3 because it was always idle at that time and Machine 2 had missing data there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also noticed that in the data on row 522,001 you have an issue. On row 522000, the date/time is 8-NOV-22, 23:59:59. Row 522001 is 9-NOV-22 00:00:00. And Row 522002 is 08-NOV-22-00:00:00. Something there cannot be right.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will need to watch for issues like this when plotting data over time.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2022 20:27:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Plot-time-dependent-nominal-character-data-with-graph-builder/m-p/581182#M78806</guid>
      <dc:creator>Dan_Obermiller</dc:creator>
      <dc:date>2022-12-13T20:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: Plot time dependent nominal character with graph builder</title>
      <link>https://community.jmp.com/t5/Discussions/Plot-time-dependent-nominal-character-data-with-graph-builder/m-p/581200#M78810</link>
      <description>&lt;P&gt;Thanks for pointing out the problems the data has with time... but that wasn't too important for me compared to the plotting issue.&lt;BR /&gt;Plotting character type data takes a different way of thinking, it seems, compared to numerical data... that's interesting.&amp;nbsp; I wouldn't have wanted to modify my data in the way you suggested, but it does solve my original question.&amp;nbsp; Thank you for your help!&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2022 20:18:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Plot-time-dependent-nominal-character-data-with-graph-builder/m-p/581200#M78810</guid>
      <dc:creator>GreenisBTFL</dc:creator>
      <dc:date>2022-12-13T20:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: Plot time dependent nominal character with graph builder</title>
      <link>https://community.jmp.com/t5/Discussions/Plot-time-dependent-nominal-character-data-with-graph-builder/m-p/581305#M78820</link>
      <description>&lt;P&gt;You could try the &lt;STRONG&gt;Heatmap&lt;/STRONG&gt; plot mode with &lt;EM&gt;machine&lt;/EM&gt; state as &lt;STRONG&gt;color.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_2-1670971487558.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/48292i2E903A54115BFEBA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_2-1670971487558.png" alt="hogi_2-1670971487558.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But unfortunately, it's not possible to lock the "binning" - with every change of the x-axis the time interval will bounce back to something way too big :(&lt;/img&gt;&lt;/P&gt;&lt;P&gt;On the other hand perhaps not too bad - as it makes the faulted periods easier to detect :)&lt;/img&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2022 22:46:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Plot-time-dependent-nominal-character-data-with-graph-builder/m-p/581305#M78820</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2022-12-13T22:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: Plot time dependent nominal character with graph builder</title>
      <link>https://community.jmp.com/t5/Discussions/Plot-time-dependent-nominal-character-data-with-graph-builder/m-p/581642#M78849</link>
      <description>&lt;P&gt;What an interesting way to see the data... thank you very much for pointing this out!&amp;nbsp; I'm going to try it.&amp;nbsp; I am also interested in witnessing the "binning" problem you detected...&amp;nbsp; Again, thank you for your suggestion!&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 19:18:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Plot-time-dependent-nominal-character-data-with-graph-builder/m-p/581642#M78849</guid>
      <dc:creator>GreenisBTFL</dc:creator>
      <dc:date>2022-12-14T19:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: Plot time dependent nominal character with graph builder</title>
      <link>https://community.jmp.com/t5/Discussions/Plot-time-dependent-nominal-character-data-with-graph-builder/m-p/582394#M78892</link>
      <description>&lt;P&gt;Concerning the&amp;nbsp; feature/bug with axis rescale:&lt;BR /&gt;&lt;BR /&gt;After running the below code, you will get this plot:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1671179161366.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/48353i5D5C60D409B5D93F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1671179161366.png" alt="hogi_0-1671179161366.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If you want to get rid of the empty area on the right and drag the end of the x axis slightly too far or if you just zoom in to the data),&lt;BR /&gt;the graph will flip to this one:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_1-1671181542206.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/48354i4845D529DEE9DD04/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_1-1671181542206.png" alt="hogi_1-1671181542206.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$DOWNLOADS/Dummy data.jmp" );

stacked = dt &amp;lt;&amp;lt; Stack(
	columns( :Machine 1, :Machine 2, :Machine 3 ),
	Source Label Column( "Label" ),
	Stacked Data Column( "Data" )
);

stacked  &amp;lt;&amp;lt; Graph Builder(
	Size( 1175, 386 ),
	Show Control Panel( 0 ),
	Summary Statistic( "Median" ),
	Graph Spacing( 4 ),
	Variables( X( :Date Time ), Y( :Data ), Group Y( :Label ), Color( :Data ) ),
	Elements( Heatmap( X, Y, Legend( 5 ) ) ),
	SendToReport(
		Dispatch(
			{},
			"Date Time",
			ScaleBox,
			{Interval( "Hour" ),
			Inc( 1 ), Minor Ticks( 3 )}
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 16 Dec 2022 09:05:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Plot-time-dependent-nominal-character-data-with-graph-builder/m-p/582394#M78892</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2022-12-16T09:05:53Z</dc:date>
    </item>
  </channel>
</rss>

