<?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 How to get 2-D heatmap/histogram?! in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-to-get-2-D-heatmap-histogram/m-p/993127#M25975</link>
    <description>&lt;P&gt;I have 500 observations, each of which has two measurements [offmm_ind and delta].&lt;/P&gt;
&lt;P&gt;The dataset is attached below.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to generate 2D histogram/heatmap?!&amp;nbsp; Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 05 Sep 2026 17:06:06 GMT</pubDate>
    <dc:creator>hellohere</dc:creator>
    <dc:date>2026-09-05T17:06:06Z</dc:date>
    <item>
      <title>How to get 2-D heatmap/histogram?!</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-get-2-D-heatmap-histogram/m-p/993127#M25975</link>
      <description>&lt;P&gt;I have 500 observations, each of which has two measurements [offmm_ind and delta].&lt;/P&gt;
&lt;P&gt;The dataset is attached below.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to generate 2D histogram/heatmap?!&amp;nbsp; Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Sep 2026 17:06:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-get-2-D-heatmap-histogram/m-p/993127#M25975</guid>
      <dc:creator>hellohere</dc:creator>
      <dc:date>2026-09-05T17:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to get 2-D heatmap/histogram?!</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-get-2-D-heatmap-histogram/m-p/993128#M25976</link>
      <description>&lt;P&gt;&lt;A href="https://www.google.com/search?q=sas+heatmap" target="_blank"&gt;https://www.google.com/search?q=sas+heatmap&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Sep 2026 20:59:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-get-2-D-heatmap-histogram/m-p/993128#M25976</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2026-09-05T20:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to get 2-D heatmap/histogram?!</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-get-2-D-heatmap-histogram/m-p/993177#M25977</link>
      <description>&lt;P&gt;Google search :&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;heatmap site:blogs.sas.com&lt;/LI&gt;
&lt;LI&gt;heatmap site:communities.sas.com&lt;/LI&gt;
&lt;LI&gt;heatmap site:support.sas.com&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;You can add the term "density" in the Google search if you wish.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See also :&lt;/P&gt;
&lt;P&gt;Graphics Samples Output Gallery&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/en/knowledge-base/graph-samples-gallery.html" target="_blank"&gt;https://support.sas.com/en/knowledge-base/graph-samples-gallery.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Mon, 07 Sep 2026 09:43:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-get-2-D-heatmap-histogram/m-p/993177#M25977</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2026-09-07T09:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to get 2-D heatmap/histogram?!</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-get-2-D-heatmap-histogram/m-p/993306#M25978</link>
      <description>&lt;P&gt;There are two ways to deal with data like this:&lt;BR /&gt;1) Create a scatter plot and use semi-transparent markers to show regions where many observations are overplotted&lt;/P&gt;
&lt;P&gt;2) Use a heat map to bin the markers onto a 2-D grid, then display the frequency of observations in each cell/bin.&lt;/P&gt;
&lt;P&gt;You asked for (2), so here it is:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname myLib "C:\Users\frwick\Downloads";
title "Frequency of Observations in 2-D Bins";
proc sgplot data=MyLib.Have;
heatmap x=offmm_ind y=delta;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Rick_SAS_0-1788960246334.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/117651i3FBFA88B8832C0F9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Rick_SAS_0-1788960246334.png" alt="Rick_SAS_0-1788960246334.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;For more ways to visualize the density of bivariate data, see&lt;BR /&gt;&lt;A href="https://blogs.sas.com/content/iml/2019/09/18/visualize-density-bivariate-data.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2019/09/18/visualize-density-bivariate-data.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2026 13:26:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-get-2-D-heatmap-histogram/m-p/993306#M25978</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2026-09-09T13:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to get 2-D heatmap/histogram?!</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-get-2-D-heatmap-histogram/m-p/993323#M25979</link>
      <description>&lt;P&gt;For frequency-based heat maps, you might want to favor two-color ramps instead of three-color ramps. Using&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp;'s program with the COLORMODEL option:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;title "Frequency of Observations in 2-D Bins";
proc sgplot data=MyLib.Have;
heatmap x=offmm_ind y=delta / colormodel=twocolorramp;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SGPlot.png" style="width: 640px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/117664i6B8231FAEBF0E696/image-size/large?v=v2&amp;amp;px=999" role="button" title="SGPlot.png" alt="SGPlot.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2026 15:14:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-get-2-D-heatmap-histogram/m-p/993323#M25979</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2026-09-09T15:14:01Z</dc:date>
    </item>
  </channel>
</rss>

