| Macro Name | CrossPlots |
| Description |
Macro procedure CrossPlots creates a set of plots of all the X's against all the Y's. If only X's are given, this procedure plots all the combinations of the X variables. If only Y's are given, this procedure plots all the combinations of the Y variables. If no X's or Y's are given, this procedure plots the combinations of all the numeric variables in the dataset. If an X variable has <= MaxLevel values, a boxplot will be created. If an X variable has > MaxLevel values, a scatterplot will be created.. |
| Macro Parameters |
Dataset: Dataset to use Xs: X axis variables to be plotted Ys: Y axis variables to be plotted MaxLevel: Maximum number of categories to allow Boxplots Replay: Number of plots per page. (Options: 1 2 4 6 9 16) |
| Programmer | ArthurWatts (Arthur_Watts@urmc.rochester.edu) |
| Revision | 1 |
| Disclaimer | This SAS macro is developed by Mr. Watts in the Department of Biostatistics and Computational Biology at the University of Rochester under the auspice of the CTSI BREAD with the intent to facilitate data analyses and reporting in clinical and related research. It is copyrighted by Mr. Watts, March 2009 and distributed for free public access. |
| Example(s) |
Example of macro call: %CrossPlots(a,Weight,Cholesterol SystolicBP? DiastolicBP?,6,9); |
| Special Features |
You may change the X & Y axis by creating your axis defintion in macro variables xaxis and yaxis. Example: %Let xaxis=C=Black W=2 Major=(W=2) Minor=(W=2) Label=(C=Black H=2) Value=(C=Black H=2); %Let yaxis=C=Black W=2 Major=(W=2) Minor=(W=2) Label=(C=Black H=2 A=90) Value=(C=Black H=2); |
| Called Macros |
Section with calls to needed macros: For example: Filename incl URL "http://ctspedia.org/wiki/pub/CTSpedia/CrossPlotsMacroSas/CrossPlots.sas"; %Include incl; |
| Notes | |
| See Also |