Java教程

SAS heatmapparm

本文主要是介绍SAS heatmapparm,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

 

 

/*--Fig 4.6.2 Heat map--*/
data GTL_GS_HeatmapParm;
  drop pi val;
  pi=constant('Pi');
  do x=1 to 20;
    do y=1 to 10;
      value=sin(x*pi/10) + cos(y*pi/10);
      val=ranuni(2);
      group=ifc(val < 0.5, 'M', 'F');
      output;
    end;
  end;
run;
proc print data=GTL_GS_HeatmapParm; run;

ods html;

proc template;
define statgraph _heatmapparm;
    begingraph;
        layout overlay / xaxisopts = (display = (ticks tickvalues)) yaxisopts = (display = (ticks tickvalues));
            heatmapparm x = x y = y colorresponse = value / name = 'a';
            continuouslegend 'a';
        endlayout;
    endgraph;
end;
run;

proc sgrender data = GTL_GS_HeatmapParm template = _heatmapparm;
run;

 

这篇关于SAS heatmapparm的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!