%boxanno ---------------------------------------------------------------------- Description BOXANNO SAS annotates a scatterplot with marginal boxplots of one or more of the variables plotted with either PROC GPLOT, PROC G3D or (as of Version 1.5) PROC GCHART. Created: 20 Apr 1988 11:32:44 Revised: 18 May 2000 09:26:27 Syntax %macro boxanno(data=_last_, xvar=, yvar=,out=boxanno) data=_last_ - Data set to be plotted xvar= - Horizontal variable yvar= - Vertical variable out=boxanno - Output annotate dataset Examples %boxanno(data=c2,xvar=water81,yvar=ln81,out=boxanno); proc gplot data=c2 gout=mycat; plot ln81*water81 / vaxis=axis1 vminor=0 haxis=axis2 hminor=1 anno=boxanno ; run; quit; Authors Michael Friendly friendly@yorku.ca Also See See the complete usage of the macro from the author's page http://www.math.yorku.ca/SCS/sssg/boxanno.html Or see a complete example in http://www.ats.ucla.edu/stat/sas/examples/rwg/rwgsas1.htm#boxanno Also see the macro itself from http://www.ats.ucla.edu/stat/sas/macros/boxanno.sas.txt