/******************************************************************************
 * Programme : Generating Heatmaps with SGPLOT and SGPANEL
 * Reference : GENERA291B
 * Source    : https://www.wearecas.eu/en/sampleCode/GENERA291B
 ******************************************************************************/

/* --- BLOC 1 --- */
ods listing gpath="/home/mySASData/resources_github/Graph/Correlation/img" image_dpi=200;

ods graphics /
	reset = all attrpriority=color border = no width=600px height=400px 
	imagename = "heatmap2_1" imagefmt = jpeg outputfmt = jpeg antialiasmax = 10000;

/* --- BLOC 2 --- */
proc sgplot  data=sashelp.heart;
  heatmap x=weight y=cholesterol;
run;

/* --- BLOC 3 --- */
ods graphics /
	reset = all attrpriority=color border = no width=600px height=400px 
	imagename = "heatmap2_2" imagefmt = jpeg outputfmt = jpeg antialiasmax = 10000;

/* --- BLOC 4 --- */
proc sgpanel data=sashelp.heart;
  panelby sex;
  heatmap x=weight y=cholesterol;
run;

