<?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 the label for the colorrange description in for instanace Heatmap in SAS Gplot in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Changing-the-label-for-the-colorrange-description-in-for/m-p/314746#M11061</link>
    <description>&lt;P&gt;Thanks a lot. Works like a dream. Did not think tio look for a separate chapter in the documentation.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Nov 2016 06:49:06 GMT</pubDate>
    <dc:creator>PaalNavestad</dc:creator>
    <dc:date>2016-11-28T06:49:06Z</dc:date>
    <item>
      <title>Changing the label for the colorrange description in for instanace Heatmap in SAS Gplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Changing-the-label-for-the-colorrange-description-in-for/m-p/314226#M11039</link>
      <description>&lt;P&gt;I want to control the label for the heatmap description.&amp;nbsp;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6010i30E46E4A7C90A57B/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="heatmap.PNG" title="heatmap.PNG" /&gt;&lt;/P&gt;&lt;P&gt;The label I want to be able to control is circled in blue in the picture.&lt;/P&gt;&lt;P&gt;Here is the code that produces the picture:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics on/width= 400 px height=300 px;
proc sgplot data=sashelp.cars;
	heatmap x=msrp y=horsepower;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The heatmap feature and other features that creates color by a statistics seem to default the description to the correct statistical name for this in English. That is mostly OK, but sometimes you want to control the description or remove.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anybody tell me if it is possble and how I can change this?&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2016 07:42:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Changing-the-label-for-the-colorrange-description-in-for/m-p/314226#M11039</guid>
      <dc:creator>PaalNavestad</dc:creator>
      <dc:date>2016-11-25T07:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the label for the colorrange description in for instanace Heatmap in SAS Gplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Changing-the-label-for-the-colorrange-description-in-for/m-p/314256#M11040</link>
      <description>&lt;P&gt;You should be able to change that parts label and things by naming the graph and putting in the keylegend options:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc sgplot data=sashelp.cars;
  heatmap x=msrp y=horsepower / name='hm';
  keylegend 'hm' / title="Something";
run;&lt;/PRE&gt;
&lt;P&gt;Now for some reason my SAS is not recognising heatmap as valid - could just be my instal, so can't check that. &amp;nbsp;But you should be able to change the legend paratmers, here is a GTL example also:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/grstatgraph/65377/HTML/default/viewer.htm#p0gf6kx2u9fewen12i3tx32e99ce.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/grstatgraph/65377/HTML/default/viewer.htm#p0gf6kx2u9fewen12i3tx32e99ce.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;And there are many more over at the Graphs blog:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/?s=heatmap" target="_blank"&gt;http://blogs.sas.com/content/graphicallyspeaking/?s=heatmap&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;(Note I filtered it, there are plenty of discussions on all kinds of things there - should be top of the list to check for any graph related items).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2016 09:55:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Changing-the-label-for-the-colorrange-description-in-for/m-p/314256#M11040</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-11-25T09:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the label for the colorrange description in for instanace Heatmap in SAS Gplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Changing-the-label-for-the-colorrange-description-in-for/m-p/314263#M11041</link>
      <description>&lt;P&gt;Hi, thanks for your answer. Unfotunatly it does not work. The reason you can't test is probably that you do not have 9.4M3 installed. These functions came with that release.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;running this code&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics on /width=500 px height= 300 px;
proc sgplot data=sashelp.cars;
  heatmap x=msrp y=horsepower / name='hm';
  keylegend 'hm' / title="Something";
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The following is produced&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6013i9871EDEEBC5463F4/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="with_keylegend.PNG" title="with_keylegend.PNG" /&gt;&lt;/P&gt;&lt;P&gt;AS can be seen this makes the descriptive legend disappear. The same problem occurs when using colorresponse in a scatter staement.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2016 10:20:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Changing-the-label-for-the-colorrange-description-in-for/m-p/314263#M11041</guid>
      <dc:creator>PaalNavestad</dc:creator>
      <dc:date>2016-11-25T10:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the label for the colorrange description in for instanace Heatmap in SAS Gplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Changing-the-label-for-the-colorrange-description-in-for/m-p/314264#M11042</link>
      <description>&lt;P&gt;Hi again, and thanks for the tip of using GTL. That works but is a bit more cumbersome:-)&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2016 10:21:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Changing-the-label-for-the-colorrange-description-in-for/m-p/314264#M11042</guid>
      <dc:creator>PaalNavestad</dc:creator>
      <dc:date>2016-11-25T10:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the label for the colorrange description in for instanace Heatmap in SAS Gplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Changing-the-label-for-the-colorrange-description-in-for/m-p/314266#M11043</link>
      <description>&lt;P&gt;Well, sgplot actually generates the gtl behind the scenes. &amp;nbsp;Simply put:&lt;/P&gt;
&lt;PRE&gt;proc sgplot data=abc tmplout="c:\temp.txt";
...
run;&lt;/PRE&gt;
&lt;P&gt;The tmplout indicates to SAS to store the underlying GTL code to a file. . You can then take this template code and modify it. &amp;nbsp;Starting with GTL (and finding out options) this is a great way to learn and get code quickly. &amp;nbsp;GTL is more flexible than sgplot, you can pass in dynamics, do conditional code, etc. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2016 10:26:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Changing-the-label-for-the-colorrange-description-in-for/m-p/314266#M11043</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-11-25T10:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the label for the colorrange description in for instanace Heatmap in SAS Gplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Changing-the-label-for-the-colorrange-description-in-for/m-p/314346#M11044</link>
      <description>&lt;P&gt;With HeatMap, you get a "Gradient Legend", not a "Discrete Legend". &amp;nbsp;Use the following code to customize the legend:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;ods graphics on/width= 400 px height=300 px;
proc sgplot data=sashelp.cars;
	heatmap x=msrp y=horsepower;
	gradlegend / title='New Label';
run;&lt;/PRE&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6018i70008FE3820FE3A9/image-size/medium?v=v2&amp;amp;px=-1" border="0" alt="GradLegend.png" title="GradLegend.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2016 18:20:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Changing-the-label-for-the-colorrange-description-in-for/m-p/314346#M11044</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2016-11-25T18:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the label for the colorrange description in for instanace Heatmap in SAS Gplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Changing-the-label-for-the-colorrange-description-in-for/m-p/314746#M11061</link>
      <description>&lt;P&gt;Thanks a lot. Works like a dream. Did not think tio look for a separate chapter in the documentation.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2016 06:49:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Changing-the-label-for-the-colorrange-description-in-for/m-p/314746#M11061</guid>
      <dc:creator>PaalNavestad</dc:creator>
      <dc:date>2016-11-28T06:49:06Z</dc:date>
    </item>
  </channel>
</rss>

