- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
I have a bivariate dataset that I want to display as a bivariate histogram in 3D. No problem there; I can use PROC KDE to bin the data, and then pass the output to a graphics template through PROC SGRENDER.
My problem is that I want to highlight the histogram value for a particular set of co-ordinates. For a 2D plot, I could do this with an annotate dataset (or, there are various kludges with PROC SGPLOT). Can I do this for a 3D plot?
One possible angle is that I could position a suitable marker in annotate, using the figure dimensions as the drawspace. I'm not particularly keen about that, because I would have the translate the co-ordinates of my featured point into graph positions. Since the bivariate histogram is shown in an orthographic (I think...) projection, I expect that would lead to some time-consuming geometry.
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? Any advice would be gratefully appreciated.
Kind regards,
Barney Krebs
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Looking at the doc for the Controlling the Drawing Space , there is no mentioning of a Z axis, so I guess this is not possible.
Provide an example how it should look like might help to find some creative ideas.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
I have checked the DOC ,there is no such option you could get job done.
You could connect to sas support to ask them to add this feature in PROC TEMPLATE.
Or maybe @GraphGuy could get it by SAS/GRAPH .
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;