我期待在SAS中创建热图。我有一个很大的x,y坐标数据集,就是这样。从阅读到的一切,我需要为使用像这样的坐标的“计数”:在SAS中创建热图使用
proc kde data=dataSet;
bivar X Y/out=outputDataSet;
run;
接下来,我需要创建为heatchart模板 - 我发现这个样本代码,但我不敢肯定什么都做:
proc template;
define statgraph heatmapparm;
begingraph;
layout overlay;
heatmapparm x=value1 y=value2 colorresponse=count/
name="heatmapparm" xbinaxis=false ybinaxis=false;
continuouslegend "heatmapparm"/location=outside valign=bottom;
endlayout;
endgraph;
end;
run;
我假设我需要插入我的变量为x和y的斑点,计数到colorresponse的地方,然后用这样的代码来获取热图:
proc sgrender data=outputDataSet template=heatmapparm;
run;
此代码导致出现错误消息并且没有图输出,因为它“缺少参数”。任何帮助都会很棒。谢谢!