I am making heatmaps through SAS. I would like to add reference reference lines (a horizontal and vertical) to the heatmap that split it up into quadrants. My code right now looks like this:
proc template;
define statgraph heatmapparm;
begingraph;
layout overlay;
heatmapparm x=X_Value y=Y_Value colorresponse=percent / colormodel=(blue yellow red)
name="heatmapparm" xbinaxis=false ybinaxis=false datatransparency=0;
continuouslegend "heatmapparm" / location=outside valign=bottom;
endlayout;
endgraph;
end;
run;
proc sgrender data=Data template=heatmapparm;
run;
This graphs a heatmap of the X and Y variables, but I would like add cross lines to mark the middle of my graph. Thanks!!
Try the
drawline
statement.http://support.sas.com/documentation/cdl/en/grstatgraph/65377/HTML/default/viewer.htm#n19cwbtkb5cslcn1bk80pgw2wxex.htm
This adds lines to the heatmap example from the doc: