<?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 set min/max colour gradient for cell plot in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-set-min-max-colour-gradient-for-cell-plot/m-p/284250#M54908</link>
    <description>&lt;P&gt;Dear Jim,&lt;/P&gt;&lt;P&gt;As a matter of fact I did something very similar! I manually changed the extreme values to a max and min of 10 and -10, respectively. That way the legend is the same for all graphs. and I preserve sensitivity to changes that are close to the middle (0) Here is the result:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ravi heat map horizontal legend.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/26002iA6B9A88F06427D31/image-size/large?v=v2&amp;amp;px=999" role="button" title="ravi heat map horizontal legend.png" alt="ravi heat map horizontal legend.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is a publication ready graph after much manipulation. I really wish there was more integration between the cell plot which creates nicely standardized color maps and graph builder functionality (e.g. legend labels etc)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks again for your help,&lt;/P&gt;</description>
    <pubDate>Wed, 05 Aug 2020 12:07:19 GMT</pubDate>
    <dc:creator>ezorlo</dc:creator>
    <dc:date>2020-08-05T12:07:19Z</dc:date>
    <item>
      <title>How to set min/max colour gradient for cell plot</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-set-min-max-colour-gradient-for-cell-plot/m-p/29319#M19368</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have cell plots from a table, in groups.&lt;/P&gt;&lt;P&gt;The cells are coloured by gradient according to the min/max in a group; each group has a different min/max.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to set each group to have the same min/max colour gradient?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance&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="Noname.png" style="width: 580px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/4067iAE0FC23D9856A06C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Noname.png" alt="Noname.png" /&gt;&lt;/span&gt;﻿&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2016 17:57:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-set-min-max-colour-gradient-for-cell-plot/m-p/29319#M19368</guid>
      <dc:creator>nuka_cola9</dc:creator>
      <dc:date>2016-11-17T17:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to set min/max colour gradient for cell plot</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-set-min-max-colour-gradient-for-cell-plot/m-p/29359#M19396</link>
      <description>You should get the results you want if you select the "Use Uniform Scaling" on the initial dialog box.&lt;BR /&gt;&lt;BR /&gt;You can also get what you want by changing the Modeling Type to Nominal, and then set the cell color in a script, based upon the scaling and coloring you want.</description>
      <pubDate>Fri, 18 Nov 2016 18:18:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-set-min-max-colour-gradient-for-cell-plot/m-p/29359#M19396</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2016-11-18T18:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to set min/max colour gradient for cell plot</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-set-min-max-colour-gradient-for-cell-plot/m-p/284218#M54901</link>
      <description>&lt;P&gt;Dear Jim,&lt;/P&gt;
&lt;P&gt;This kind of plot would do the trick of multiple Y axes&lt;/P&gt;
&lt;P&gt;However the scaling problem mentioned by charleslean is not easily overcome!&lt;/P&gt;
&lt;P&gt;Is there a script I can use, because 1) uniform scaling does not work since it makes the range too wide and 2) I did not understand how to implement cell color according to nominal modeling.&lt;/P&gt;
&lt;P&gt;Here is the cell plot script output from the dialog menu:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Cell Plot(
Scale Uniformly( 1 ), // Ideally there should be a way to set max and min range for the color plot here
Center at zero( 1 ),
Y( :Name( "% of transcript" ) ),
X( :Function Class ),
Label( :Gene Ontology, :Function ),
Legend( 1 ),
SendToReport(
Dispatch( {}, "Cell Plot Report", FrameBox, {Frame Size( 616, 106 )} ),
Dispatch( {}, "Cell Plot Report", FrameBox( 3 ), {Frame Size( 616, 106 )} ),
Dispatch( {}, "Cell Plot Report", FrameBox( 5 ), {Frame Size( 616, 106 )} ),
Dispatch( {}, "", NumberColBox, {Set Format( "Fixed Dec", 6, 0 )} )
)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your wizardry would be greatly appreciated!&lt;/P&gt;
&lt;P&gt;Best, ezra&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 12:11:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-set-min-max-colour-gradient-for-cell-plot/m-p/284218#M54901</guid>
      <dc:creator>ezorlo</dc:creator>
      <dc:date>2020-08-05T12:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to set min/max colour gradient for cell plot</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-set-min-max-colour-gradient-for-cell-plot/m-p/284231#M54904</link>
      <description>&lt;P&gt;You can accomplish the graph colorization the way you want, by creating a transform column.&amp;nbsp; In the example below, the data table has Column 1 with a range of 7.3-93.9, while Column 2 has a range of 28.4-73.9.&amp;nbsp; As can be seen in the Cell plot, the color patterns are very different for ranges of Column 1 and Column 2.&amp;nbsp; However, when Column 2 is transformed, the color ranges are the same.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="trans.PNG" style="width: 343px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/26001iF06D52BBC5A3C5B6/image-dimensions/343x376?v=v2" width="343" height="376" role="button" title="trans.PNG" alt="trans.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The key is to create the transform column using the following formula&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If(
	:Column 1 &amp;lt; 25, x = Col Min( :Column 2 ),
	:Column 1 &amp;gt; 75, x = Col Max( :Column 2 ),
	x = :Column 1
);
x;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;From a scripting standpoint, if you wanted to create a Cell Plot on Column 1 and Column 2, but restrict the color rage to the smaller range from Column 2, here is the script that would do that&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Cell Plot(
	Scale Uniformly( 0 ),
	Center at zero( 0 ),
	Y(
		:Column 2,
		Transform Column(
			"Transform[Column 2]",
			Formula(
				If(
					:Column 1 &amp;lt; 25, x = Col Min( :Column 2 ),
					:Column 1 &amp;gt; 75, x = Col Max( :Column 2 ),
					x = :Column 1
				);
				x;
			)
		)
	),
	Legend( 1 )
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 05 Aug 2020 10:09:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-set-min-max-colour-gradient-for-cell-plot/m-p/284231#M54904</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-08-05T10:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to set min/max colour gradient for cell plot</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-set-min-max-colour-gradient-for-cell-plot/m-p/284250#M54908</link>
      <description>&lt;P&gt;Dear Jim,&lt;/P&gt;&lt;P&gt;As a matter of fact I did something very similar! I manually changed the extreme values to a max and min of 10 and -10, respectively. That way the legend is the same for all graphs. and I preserve sensitivity to changes that are close to the middle (0) Here is the result:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ravi heat map horizontal legend.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/26002iA6B9A88F06427D31/image-size/large?v=v2&amp;amp;px=999" role="button" title="ravi heat map horizontal legend.png" alt="ravi heat map horizontal legend.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is a publication ready graph after much manipulation. I really wish there was more integration between the cell plot which creates nicely standardized color maps and graph builder functionality (e.g. legend labels etc)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks again for your help,&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 12:07:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-set-min-max-colour-gradient-for-cell-plot/m-p/284250#M54908</guid>
      <dc:creator>ezorlo</dc:creator>
      <dc:date>2020-08-05T12:07:19Z</dc:date>
    </item>
  </channel>
</rss>

