The script uses `PROC SGPLOT` for an overall heatmap and `PROC SGPANEL` to generate separate heatmaps by the 'sex' variable. It also configures ODS GRAPHICS options to control the appearance and format of output images. Part of the code is commented, showing examples of heatmaps with a color variable ('height').
Data Analysis
Type : SASHELP
The data comes from the SASHELP library, specifically from the 'heart' dataset, which is an example dataset provided by SAS.
1 Code Block
ODS Configuration
Explanation : This block configures the ODS output system to direct graphics to a specific path (`gpath`) and defines global graphics options such as image size, output format (JPEG), and image name.
Explanation : Uses the `SGPLOT` procedure to generate a heatmap. The 'weight' and 'cholesterol' variables from the SASHELP.HEART dataset are used for the X and Y axes respectively, showing the density of observations at these intersections.
Explanation : Uses the `SGPANEL` procedure to create separate heatmaps for each category of the 'sex' variable. This allows for easy comparison of 'weight' and 'cholesterol' distributions between groups.
This material is provided "as is" by We Are Cas. There are no warranties, expressed or implied, as to merchantability or fitness for a particular purpose regarding the materials or code contained herein. We Are Cas is not responsible for errors in this material as it now exists or will exist, nor does We Are Cas provide technical support for it.
Copyright Info : Last update : 06/11/2017 ; Author(s) : Nicolas Dupont ; Contributor(s) : ; On SAS Studio 9.4M4 onDemand
SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. ® indicates USA registration. WeAreCAS is an independent community site and is not affiliated with SAS Institute Inc.
This site uses technical and analytical cookies to improve your experience.
Read more.