<?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: Define Color Ramp for Heatmapparm using Graph Template Language SAS in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Define-Color-Ramp-for-Heatmapparm-using-Graph-Template-Language/m-p/814544#M22845</link>
    <description>&lt;A href="https://blogs.sas.com/content/iml/2018/11/12/rangeattrmap-custom-color-ramp.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2018/11/12/rangeattrmap-custom-color-ramp.html&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://blogs.sas.com/content/iml/2022/03/30/missing-color-range-attribute-map.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2022/03/30/missing-color-range-attribute-map.html&lt;/A&gt;&lt;BR /&gt;</description>
    <pubDate>Sat, 21 May 2022 10:27:09 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2022-05-21T10:27:09Z</dc:date>
    <item>
      <title>Define Color Ramp for Heatmapparm using Graph Template Language SAS</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Define-Color-Ramp-for-Heatmapparm-using-Graph-Template-Language/m-p/814538#M22844</link>
      <description>&lt;P&gt;I want to change the color ramp of my heatmap plot. I make a heatmap plot using a graphical template language. My response variable is in percentage form. So, I want to make the colormodel represent the value between 0 to 100 percent, blue color for low percentage (0% to 10%), white color for 10% to 20%, and red color for more than 20%. But my response variable (colorresponse) is range between 0 to around 20 percent, which caused different output from what I want. The color range follow the response variable's range (0 to 20%). Here is the code I've tried.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc template;&lt;BR /&gt;define statgraph training;&lt;BR /&gt;begingraph /DESIGNHEIGHT=550px DESIGNWIDTH=650px;&lt;BR /&gt;entrytitle 'Heatmap of Digit Check';&lt;BR /&gt;layout overlay /yaxisopts=(label="Date" tickvalueattrs=(size=8pt)) xaxisopts=(label="Last Digit" tickvalueattrs=(size=8pt));&lt;BR /&gt;heatmapparm y=day x=ld colorresponse=percent / display=all name='percent' colormodel=(blue white red);&lt;BR /&gt;scatterplot x=sbp_ld y=day /markercharacter=percent markercharacterattrs=(size=8);&lt;BR /&gt;continuouslegend 'percent';&lt;BR /&gt;endlayout;&lt;BR /&gt;endgraph;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sgrender data=digit_check template=training;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the result.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Doc1-page0001.jpg" style="width: 772px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/71681i1B81CE84A01BAF3F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Doc1-page0001.jpg" alt="Doc1-page0001.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;Could anyone help me on this? Thank you for any help you can offer.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Mifta&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 21 May 2022 08:54:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Define-Color-Ramp-for-Heatmapparm-using-Graph-Template-Language/m-p/814538#M22844</guid>
      <dc:creator>mifta</dc:creator>
      <dc:date>2022-05-21T08:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: Define Color Ramp for Heatmapparm using Graph Template Language SAS</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Define-Color-Ramp-for-Heatmapparm-using-Graph-Template-Language/m-p/814544#M22845</link>
      <description>&lt;A href="https://blogs.sas.com/content/iml/2018/11/12/rangeattrmap-custom-color-ramp.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2018/11/12/rangeattrmap-custom-color-ramp.html&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://blogs.sas.com/content/iml/2022/03/30/missing-color-range-attribute-map.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2022/03/30/missing-color-range-attribute-map.html&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 21 May 2022 10:27:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Define-Color-Ramp-for-Heatmapparm-using-Graph-Template-Language/m-p/814544#M22845</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-05-21T10:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: Define Color Ramp for Heatmapparm using Graph Template Language SAS</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Define-Color-Ramp-for-Heatmapparm-using-Graph-Template-Language/m-p/814814#M22850</link>
      <description>Hi Ksharp, Thank you for this. I already followed the steps in the articles you sent, but I found a problem when trying to use the custom color ramp in colormodel= option in the hetmapparm. But thankfully it already resolved. Here is the full script that I use, in case other people need it.&lt;BR /&gt;&lt;BR /&gt;proc template;&lt;BR /&gt;define statgraph training;&lt;BR /&gt;begingraph/DESIGNHEIGHT=500px DESIGNWIDTH=550px;&lt;BR /&gt;rangeattrmap name="ResponseRange";&lt;BR /&gt;range MIN - 10 / rangeColorModel=(blue lightblue);&lt;BR /&gt;range 10 &amp;lt; - 20 / rangeColorModel=(lightblue white lightred);&lt;BR /&gt;range 20 &amp;lt; - MAX / rangeColorModel=(lightred red);&lt;BR /&gt;endrangeattrmap;&lt;BR /&gt;rangeattrvar var=percent /* specify response variable in data set */&lt;BR /&gt;attrmap="ResponseRange" /* specify custom color ramp */&lt;BR /&gt;attrvar=RangeVar; /* alias for this variable/ramp combination */&lt;BR /&gt;entrytitle "Heat Map";&lt;BR /&gt;layout overlay /yaxisopts=(label="Employee" tickvalueattrs=(size=8pt)) xaxisopts=(label="Last Digit" tickvalueattrs=(size=8pt));&lt;BR /&gt;heatmapparm y=employee x=last_digit colorresponse=RangeVar / display=all name='percent';&lt;BR /&gt;scatterplot x=last_digit y=employee /markercharacter=percent markercharacterattrs=(size=6.5);&lt;BR /&gt;continuouslegend 'percent' / title='Percentage';&lt;BR /&gt;endlayout;&lt;BR /&gt;endgraph;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Mifta</description>
      <pubDate>Tue, 24 May 2022 04:27:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Define-Color-Ramp-for-Heatmapparm-using-Graph-Template-Language/m-p/814814#M22850</guid>
      <dc:creator>mifta</dc:creator>
      <dc:date>2022-05-24T04:27:54Z</dc:date>
    </item>
  </channel>
</rss>

