<?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 Sankey Plot Color Assignment in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Sankey-Plot-Color-Assignment/m-p/889247#M105131</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hi JMP Community,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Do you have any experience assigning the color for all sequences in a Sankey Plot with the SAME color category?&amp;nbsp; &amp;nbsp;The challenge I encountered was that each sequence had a different color category, making it difficult to track the change of items from sequence 1 to 2... to n with the same color assigned.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Many thanks!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 24 Jul 2025 16:23:42 GMT</pubDate>
    <dc:creator>qunw</dc:creator>
    <dc:date>2025-07-24T16:23:42Z</dc:date>
    <item>
      <title>Sankey Plot Color Assignment</title>
      <link>https://community.jmp.com/t5/Discussions/Sankey-Plot-Color-Assignment/m-p/889247#M105131</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi JMP Community,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Do you have any experience assigning the color for all sequences in a Sankey Plot with the SAME color category?&amp;nbsp; &amp;nbsp;The challenge I encountered was that each sequence had a different color category, making it difficult to track the change of items from sequence 1 to 2... to n with the same color assigned.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Many thanks!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jul 2025 16:23:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Sankey-Plot-Color-Assignment/m-p/889247#M105131</guid>
      <dc:creator>qunw</dc:creator>
      <dc:date>2025-07-24T16:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: Sankey Plot Color Assignment</title>
      <link>https://community.jmp.com/t5/Discussions/Sankey-Plot-Color-Assignment/m-p/889260#M105132</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/72731"&gt;@qunw&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Welcome in the Community !&lt;BR /&gt;I think Parallel Coordinates Plot could be helpful for your objective, with the color coding by category. See more here &lt;A href="https://www.jmp.com/support/help/en/18.2/#page/jmp/parallel-plots.shtml" target="_blank" rel="noopener"&gt;https://www.jmp.com/support/help/en/18.2/#page/jmp/parallel-plots.shtml&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;You can also check the Enhanced Sankey Plot (ESP) created by &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp;: &lt;A href="https://community.jmp.com/t5/JMP-Add-Ins/Enhanced-Sankey-Plot-ESP/ta-p/549745" target="_blank"&gt;https://community.jmp.com/t5/JMP-Add-Ins/Enhanced-Sankey-Plot-ESP/ta-p/549745&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Hope these options will help you,&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jul 2025 18:23:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Sankey-Plot-Color-Assignment/m-p/889260#M105132</guid>
      <dc:creator>Victor_G</dc:creator>
      <dc:date>2025-07-24T18:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: Sankey Plot Color Assignment</title>
      <link>https://community.jmp.com/t5/Discussions/Sankey-Plot-Color-Assignment/m-p/889267#M105134</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/72731"&gt;@qunw&lt;/a&gt;&amp;nbsp;, Could you please post an (anonymized) example of the issue you experience?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On my side, I wish I could use Sankey plots to monitor state changes - of "properties" during a process flow.&lt;BR /&gt;e.g. with different categories of pass and fail.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In a Sankey plot, color doesn't indicate the value per category, it indicates "groups". (red on the left of the diagram are the same rows of the data table as red on the right - anywhere else in the plot.) Is this what you describe with "&lt;SPAN&gt;each sequence had a different color category&lt;/SPAN&gt;"?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As a consequence - in the below example, e.g. blue can "be" 0 on the left, and blue in the center and on the right:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1753384460266.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/78846i54D5F8EA6A1A4688/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1753384460266.png" alt="hogi_0-1753384460266.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On the other hand, from how the plot works, it doesn't make sense to give all "1"s with the same color.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But how to "find" the 1s in a complicated Sankey plot.&lt;BR /&gt;If they don't have the same color?&lt;BR /&gt;&lt;BR /&gt;Unfortunately: JUST BY THE LABELS !&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And how to find "state" changes - e.. from 0 to 1. -&amp;gt; close to impossible "by the naked eye" - it just works with heavy load on the brain-coprocessor:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Different to a Sankey plot for continuous values:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_1-1753384945218.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/78847i00A0FCEE1CB82EA7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_1-1753384945218.png" alt="hogi_1-1753384945218.png" /&gt;&lt;/span&gt;&lt;BR /&gt;... for columns with nominal modeling type the same value can be at rather different positions along the Y axis.&lt;BR /&gt;This makes it very hard to detect "state" changes for Sankey plots with nominal values.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;There could be an option to switch from the nominal mode to a quasi "continuous mode" - with same values on the same height - but with the cool additional feature to track "population" by the width of the "tubes"&lt;/P&gt;
&lt;P&gt;There is a wish to enable this mode:&amp;nbsp;&lt;LI-MESSAGE title="Parallel Plot: synchronized axes" uid="651004" url="https://community.jmp.com/t5/JMP-Wish-List/Parallel-Plot-synchronized-axes/m-p/651004#U651004" 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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The workaround at the moment:&lt;BR /&gt;use (pseudo-)continuous values.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jul 2025 19:27:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Sankey-Plot-Color-Assignment/m-p/889267#M105134</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-07-24T19:27:24Z</dc:date>
    </item>
    <item>
      <title>Re: Sankey Plot Color Assignment</title>
      <link>https://community.jmp.com/t5/Discussions/Sankey-Plot-Color-Assignment/m-p/889269#M105135</link>
      <description>&lt;P&gt;Beside the usability - there is also an aesthetic aspect:&lt;BR /&gt;&lt;BR /&gt;why do &lt;EM&gt;Savings&lt;/EM&gt;, &lt;EM&gt;Home&lt;/EM&gt; and other bend upwards - why not stay on one height?&lt;BR /&gt;There is enough (empty) space at the lower right:&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-1753386154040.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/78848iF99D14FD2161379C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1753386154040.png" alt="hogi_0-1753386154040.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jul 2025 19:44:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Sankey-Plot-Color-Assignment/m-p/889269#M105135</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-07-24T19:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: Sankey Plot Color Assignment</title>
      <link>https://community.jmp.com/t5/Discussions/Sankey-Plot-Color-Assignment/m-p/890200#M105202</link>
      <description>&lt;P&gt;Thanks, Victor, for your references!&amp;nbsp; I used the parallel coordinates plot for the Sankey Plot of the patient treatment profiling, and it's challenging to assign the same colors to the same regimens in the sequence of treatments. The two examples included in the instruction of the parallel plot are not precisely similar to my case, which may need additional coding to help synchronize the color setting across treatments.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jul 2025 04:49:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Sankey-Plot-Color-Assignment/m-p/890200#M105202</guid>
      <dc:creator>qunw</dc:creator>
      <dc:date>2025-07-29T04:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: Sankey Plot Color Assignment</title>
      <link>https://community.jmp.com/t5/Discussions/Sankey-Plot-Color-Assignment/m-p/890202#M105203</link>
      <description>&lt;P&gt;Thanks so much, Hogi, for helping me with this query and sharing the examples!&amp;nbsp; I used the&amp;nbsp;&lt;SPAN&gt;Sankey plot for patient treatment profiling and tried to assign the same colors to the same regimens in the sequence of treatments.&amp;nbsp; My case is quite similar to your example.&amp;nbsp; You were correct about my description of&amp;nbsp;"each sequence had a different color category."&amp;nbsp; The "value 1, 2 and 3" on x-axis like "treatment 1, 2, and 3", and "value 0, 1, 2" like regimens per treatment.&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;I would like to&amp;nbsp;&lt;STRONG&gt;synchronize&amp;nbsp;&lt;/STRONG&gt;the color setting of 0, 1, and 2 in each "value 1, 2, and 3", where "1" is red, "2" is green, and "0" is blue across value 1, 2, and 3.&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; So that will help to understand the patients' treatment journey. Please let me know if you have any solution for it—many thanks.&amp;nbsp;&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="qunw_0-1753764893903.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/79097i28A960A933C48C96/image-size/medium?v=v2&amp;amp;px=400" role="button" title="qunw_0-1753764893903.png" alt="qunw_0-1753764893903.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jul 2025 05:05:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Sankey-Plot-Color-Assignment/m-p/890202#M105203</guid>
      <dc:creator>qunw</dc:creator>
      <dc:date>2025-07-29T05:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: Sankey Plot Color Assignment</title>
      <link>https://community.jmp.com/t5/Discussions/Sankey-Plot-Color-Assignment/m-p/890204#M105204</link>
      <description>&lt;P&gt;I learned this graph from a community post, which provided another way of visualizing a related question, such as tracking the diversity of each regimen in the initial treatment and subsequent treatments. I figured out a way to generate it by labeling each value in the following Outflows with the value in Outflow 1 as the prefix if they are from the same value in Outflow 1, such as 'Auto', 'Home', 'Taxes', etc. This requires some data preprocessing to make it happen.&amp;nbsp; Hope you have a better way to do it.&amp;nbsp; Many thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jul 2025 05:16:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Sankey-Plot-Color-Assignment/m-p/890204#M105204</guid>
      <dc:creator>qunw</dc:creator>
      <dc:date>2025-07-29T05:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: Sankey Plot Color Assignment</title>
      <link>https://community.jmp.com/t5/Discussions/Sankey-Plot-Color-Assignment/m-p/890207#M105205</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/72731"&gt;@qunw&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;I would like to&amp;nbsp;&lt;STRONG&gt;synchronize&amp;nbsp;&lt;/STRONG&gt;the color setting of 0, 1, and 2 in each "value 1, 2, and 3", where "1" is red, "2" is green, and "0" is blue across value 1, 2, and 3.&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Ok, understood.&lt;/P&gt;
&lt;P&gt;I fear, this is not possible (and not intended) via Sankey plot.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jul 2025 05:42:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Sankey-Plot-Color-Assignment/m-p/890207#M105205</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-07-29T05:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: Sankey Plot Color Assignment</title>
      <link>https://community.jmp.com/t5/Discussions/Sankey-Plot-Color-Assignment/m-p/890213#M105207</link>
      <description>&lt;P&gt;In GraphBuilder, colors can be assigned via Row States or the Color Dropzone.&lt;BR /&gt;In both cases, the color is defined 'by row'.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Therefore, when you select a trajectory in the plot, a specific row is selected. The color of the trajectory is defined by the color of this row. One trajectory, one color.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_3-1753768025975.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/79104iD74955022FD04470/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_3-1753768025975.png" alt="hogi_3-1753768025975.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-SPOILER&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Table( "treatment",
	Add Rows( 9 ),
	New Column( "patient",
		Character,
		Set Values(
			{"V1_0", "V1_1", "V1_2", "V1_3", "V1_4", "V1_5", "V1_6", "V1_7", "V1_8"}
		)
	),
	New Column( "treatment 1",
		"Nominal",
		Set Values( [1, 1, 1, 2, 2, 2, 3, 3, 3] )
	),
	New Column( "treatment 2",
		"Nominal",
		Set Values( [1, 2, 3, 1, 2, 3, 1, 2, 3] )
	),
	New Column( "treatment 3",
		"Nominal",
		Set Values( [1, 1, 2, 1, 2, 3, 3, 3, 3] )
	)
)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/LI-SPOILER&gt;</description>
      <pubDate>Tue, 29 Jul 2025 05:50:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Sankey-Plot-Color-Assignment/m-p/890213#M105207</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-07-29T05:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: Sankey Plot Color Assignment</title>
      <link>https://community.jmp.com/t5/Discussions/Sankey-Plot-Color-Assignment/m-p/890215#M105208</link>
      <description>&lt;P&gt;to get different colors for the same row, one has to use scripting - or split the row.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Split the row: Stack the table:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;current data table &amp;lt;&amp;lt; Stack(	columns( :treatment 1, :treatment 2, :treatment 3 ));

Graph Builder(
	Show Control Panel( 0 ),
	Variables( X( :Label ), Y( :patient ), Color( :Data ) ),
	Elements( Heatmap( X, Y, Legend( 4 ) ) )
);&lt;/CODE&gt;&lt;/PRE&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_4-1753768778572.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/79105iA76135C1867F1109/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_4-1753768778572.png" alt="hogi_4-1753768778572.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jul 2025 06:00:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Sankey-Plot-Color-Assignment/m-p/890215#M105208</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-07-29T06:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: Sankey Plot Color Assignment</title>
      <link>https://community.jmp.com/t5/Discussions/Sankey-Plot-Color-Assignment/m-p/890233#M105211</link>
      <description>&lt;P&gt;The Heatmap plot contains all the information - but: it is surprising how many co-processing by the human brain in needed to "understand it".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Closer to the Sankey plot - with treatment indicated by color AND position along the y axis.&lt;BR /&gt;-&amp;gt; less coprocessing needed - much easier to see the information by the naked eye.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_7-1753770463548.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/79108iC1BA78714CAFF30F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_7-1753770463548.png" alt="hogi_7-1753770463548.png" /&gt;&lt;/span&gt;&amp;nbsp; &amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1753778310430.png" style="width: 330px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/79115i20C18B6387E8B443/image-dimensions/330x255?v=v2" width="330" height="255" role="button" title="hogi_0-1753778310430.png" alt="hogi_0-1753778310430.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;P&gt;Even closer to Sankey -- with all trajectories in one plot,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the graph gets very busy and it's not possible anymore to follow specific trajectories.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_6-1753770052194.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/79107iBE23A70E80FD36EB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_6-1753770052194.png" alt="hogi_6-1753770052194.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jul 2025 08:47:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Sankey-Plot-Color-Assignment/m-p/890233#M105211</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-07-29T08:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: Sankey Plot Color Assignment</title>
      <link>https://community.jmp.com/t5/Discussions/Sankey-Plot-Color-Assignment/m-p/890571#M105225</link>
      <description>&lt;P&gt;You are absolutely correct!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jul 2025 16:03:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Sankey-Plot-Color-Assignment/m-p/890571#M105225</guid>
      <dc:creator>qunw</dc:creator>
      <dc:date>2025-07-29T16:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: Sankey Plot Color Assignment</title>
      <link>https://community.jmp.com/t5/Discussions/Sankey-Plot-Color-Assignment/m-p/890582#M105226</link>
      <description>&lt;P&gt;Truly.&amp;nbsp; A Sankey plot still would be the best visualization for profile tracking.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jul 2025 16:05:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Sankey-Plot-Color-Assignment/m-p/890582#M105226</guid>
      <dc:creator>qunw</dc:creator>
      <dc:date>2025-07-29T16:05:24Z</dc:date>
    </item>
    <item>
      <title>Re: Sankey Plot Color Assignment</title>
      <link>https://community.jmp.com/t5/Discussions/Sankey-Plot-Color-Assignment/m-p/890642#M105229</link>
      <description>&lt;P&gt;How about the proposal in&amp;nbsp;&lt;LI-MESSAGE title="Parallel Plot: synchronized axes" uid="651004" url="https://community.jmp.com/t5/JMP-Wish-List/Parallel-Plot-synchronized-axes/m-p/651004#U651004" 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;&lt;EM&gt;&lt;STRONG&gt;use same "Y" position to identify the same "value".&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;This option is already available for columns with modeling type "continuous" (not nominal).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One can adjust the line width to get a better looking graph.&lt;BR /&gt;Unfortunately, there is no possibility to use the line width to represent the fraction / population.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Color can be used to identify another type of information:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;inital treatment:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1753805857156.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/79156i1D36A347150B6840/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1753805857156.png" alt="hogi_0-1753805857156.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;number of different treatments:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_1-1753805876053.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/79157i1B378D0429922372/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_1-1753805876053.png" alt="hogi_1-1753805876053.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = New Table( "treatment",
	Add Rows( 9 ),
	New Column( "patient",
		Character,
		Set Values(
			{"V1_0", "V1_1", "V1_2", "V1_3", "V1_4", "V1_5", "V1_6", "V1_7", "V1_8"}
		)
	),
	New Column( "treatment 1",
		//"Nominal",
		Set Values( [1, 1, 1, 2, 2, 2, 3, 3, 3] )
	),
	New Column( "treatment 2",
		//"Nominal",
		Set Values( [1, 2, 3, 1, 2, 3, 1, 2, 3] )
	),
	New Column( "treatment 3",
		//"Nominal",
		Set Values( [1, 1, 2, 1, 2, 3, 3, 3, 3] )
	)
);

//this functionality is only available for scripters.&lt;BR /&gt;//via the GUI, a user can create the equation manually
dt &amp;lt;&amp;lt; New Formula Column(
	Operation( Category( "Character" ), "Concatenate with Underscore" ),
	Columns( :treatment 1, :treatment 2, :treatment 3 )
) &amp;lt;&amp;lt; Run Formulas;

Graph Builder(
	Size( 568, 240 ),
	Show Control Panel( 0 ),
	Summary Statistic( "Median" ),
	Graph Spacing( 4 ),
	Variables(
		X( :treatment 1 ),
		X( :treatment 2, Position( 1 ) ),
		X( :treatment 3, Position( 1 ) ),
		Color( :"Concatenate[treatment 1,treatment 2,treatment 3]"n )
	),
	Elements(
		Parallel( X( 1 ), X( 2 ), X( 3 ) )
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jul 2025 16:23:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Sankey-Plot-Color-Assignment/m-p/890642#M105229</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-07-29T16:23:51Z</dc:date>
    </item>
  </channel>
</rss>

