<?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: Annotation for a 3D bivariate histogram in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Annotation-for-a-3D-bivariate-histogram/m-p/913938#M24294</link>
    <description>&lt;P&gt;I have checked the DOC ,there is no such option you could get job done.&lt;/P&gt;
&lt;P&gt;You could connect to sas support to ask them to add this feature in PROC TEMPLATE.&lt;/P&gt;
&lt;P&gt;Or maybe&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13585"&gt;@GraphGuy&lt;/a&gt;&amp;nbsp; could get it by SAS/GRAPH .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc template;
define statgraph bihistogram;
begingraph;
entrytitle "Distribution of Height and Weight";
entryfootnote halign=right "SASHELP.HEART";
layout overlay3d / cube=false zaxisopts=(griddisplay=on);
bihistogram3dparm x=height y=weight z=count / display=all  FILLATTRS=graphdata3;
endlayout;
endgraph;
end;
run;
data heart;
set sashelp.heart(keep=height weight);
if height ne . and weight ne .;
height=round(height,5);
weight=round(weight,25);
run;
proc summary data=heart nway completetypes;
class height weight;
var height;
output out=stats(keep=height weight count) N=Count;
run;

proc sgrender data=stats template=bihistogram ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1706778580266.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/93143i075247F08B451839/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1706778580266.png" alt="Ksharp_0-1706778580266.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Feb 2024 09:16:26 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2024-02-01T09:16:26Z</dc:date>
    <item>
      <title>Annotation for a 3D bivariate histogram</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Annotation-for-a-3D-bivariate-histogram/m-p/913837#M24292</link>
      <description>&lt;P&gt;I have a bivariate dataset that I want to display as a bivariate histogram in 3D.&amp;nbsp; No problem there; I can use PROC KDE to bin the data, and then pass the output to a graphics template through PROC SGRENDER.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My problem is that I want to highlight the histogram value for a particular set of co-ordinates.&amp;nbsp; For a 2D plot, I could do this with an annotate dataset (or, there are various kludges with PROC SGPLOT).&amp;nbsp; Can I do this for a 3D plot?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One possible angle is that I could position a suitable marker in annotate, using the figure dimensions as the drawspace.&amp;nbsp; I'm not particularly keen about that, because I would have the translate the co-ordinates of my featured point into graph positions.&amp;nbsp; Since the bivariate histogram is shown in an orthographic (I think...) projection, I expect that would lead to some time-consuming geometry.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anybody suggest an example where such a thing has been done? Alternatively, does the ANNOTATE facility support any three-dimensional functionality when the DRAWSPACE is set to DATA?&amp;nbsp; Any advice would be gratefully appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;BR /&gt;Barney Krebs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2024 16:27:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Annotation-for-a-3D-bivariate-histogram/m-p/913837#M24292</guid>
      <dc:creator>wbkrebs</dc:creator>
      <dc:date>2024-01-31T16:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: Annotation for a 3D bivariate histogram</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Annotation-for-a-3D-bivariate-histogram/m-p/913933#M24293</link>
      <description>&lt;P&gt;Looking at the doc for the &lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/v_047/grstatproc/p1pwlltro89q1sn1mfvpcc5kc23j.htm" target="_blank" rel="noopener"&gt;Controlling the Drawing Space&lt;/A&gt;&amp;nbsp;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/v_047/grstatproc/p1pwlltro89q1sn1mfvpcc5kc23j.htm," target="_blank"&gt;,&lt;/A&gt;&amp;nbsp;there is no mentioning of a Z axis, so I guess this is not possible.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Provide an example how it should look like might help to find some creative ideas.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2024 08:24:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Annotation-for-a-3D-bivariate-histogram/m-p/913933#M24293</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2024-02-01T08:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: Annotation for a 3D bivariate histogram</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Annotation-for-a-3D-bivariate-histogram/m-p/913938#M24294</link>
      <description>&lt;P&gt;I have checked the DOC ,there is no such option you could get job done.&lt;/P&gt;
&lt;P&gt;You could connect to sas support to ask them to add this feature in PROC TEMPLATE.&lt;/P&gt;
&lt;P&gt;Or maybe&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13585"&gt;@GraphGuy&lt;/a&gt;&amp;nbsp; could get it by SAS/GRAPH .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc template;
define statgraph bihistogram;
begingraph;
entrytitle "Distribution of Height and Weight";
entryfootnote halign=right "SASHELP.HEART";
layout overlay3d / cube=false zaxisopts=(griddisplay=on);
bihistogram3dparm x=height y=weight z=count / display=all  FILLATTRS=graphdata3;
endlayout;
endgraph;
end;
run;
data heart;
set sashelp.heart(keep=height weight);
if height ne . and weight ne .;
height=round(height,5);
weight=round(weight,25);
run;
proc summary data=heart nway completetypes;
class height weight;
var height;
output out=stats(keep=height weight count) N=Count;
run;

proc sgrender data=stats template=bihistogram ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1706778580266.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/93143i075247F08B451839/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1706778580266.png" alt="Ksharp_0-1706778580266.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2024 09:16:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Annotation-for-a-3D-bivariate-histogram/m-p/913938#M24294</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-02-01T09:16:26Z</dc:date>
    </item>
  </channel>
</rss>

