Below is my SAS code. I am trying to create a custom color gradient for a heat map. However, I can't get it to work. Any thoughts on why I'm recieving this error (warning)?
WARNING: Range Attribute Map 'myID' could not be found to extract colour map. Will revert tothree-colour map
Code:
data myrattrmap;
retain id "myID" name "myID";
length min $ 5 max $ 5;
input min $ max $ color $ altcolor $;
datalines;
min
-1 purple purple
-1 1 gold gold
1
max
green green
;
run;
proc sgpanel data=graph_data() rattrmap=myrattrmap;
heatmapparm x=patient_age_group y=patient_gender colorresponse=col1 / rattrid=myID;
panelby
NAME
;
gradlegend / title="Lift" position=bottom;
label
NAME
="SOURCE";
run;