Hi,
I use the code below to create a heatmap based on percentage of missing values for my variables in each year. it seems like there is a default range of colors (red and blue) which does not change at all. I changed the colors specified in rangecolormodel, but no change happens. Can you please help me to solve this. Thank you.
proc template;
define statgraph heatmap;
begingraph / designheight=400 designwidth=1200 pad=1;
entrytitle 'Percentage of missing values 3mo carry forward, full FU';
rangeattrmap name="rmap";
range min - max / rangecolormodel=(white yellow);
endrangeattrmap;
rangeattrvar attrmap="rmap" var=Percentages_missing attrvar=pColor;
layout overlay / yaxisopts=(offsetmin=0.1 offsetmax=0.1 display=(ticks tickvalues line) tickvalueattrs=(size=6))
xaxisopts=(offsetmin=0.1 offsetmax=0.1 display=(ticks tickvalues line) tickvalueattrs=(size=6) discreteopts=(tickvaluefitpolicy=stagger));
heatmapparm x=year y=Variables colorresponse=Percentages_missing / name="heatmap";
scatterplot x=year y=Variables / markercharacter=Percentages_missing markercharacterattrs=(size=4);
continuouslegend "heatmap" / valueattrs=(size=6) ;
endlayout;
endgraph;
end;
run;
proc sgrender data=out_graph template=heatmap; run;