BookmarkSubscribeRSS Feed
Jaime
Fluorite | Level 6
I usually use proc report with some conditional formatting to create heatmaps.
Is there a better way using any of the new graphics procs?
4 REPLIES 4
Jay54
Meteorite | Level 14
With SAS 9.2, You can use SGPLOT procedure and / or GTL to do heat maps, however, you have to use a scatter plot and manage the size of the markers. See examples here:

http://support.sas.com/sassamples/graphgallery/PROC_SGPLOT.html
http://support.sas.com/kb/31/489.html
http://support.sas.com/kb/35/156.html

Looking ahead, we will have a real HEATMAP statement in GTL at V9.3.
GraphGuy
Meteorite | Level 14
There are many kinds of charts people call "heat maps" - could you provide a link to an example (on the web) of the specific kind of heat map you're wanting to create?
Jaime
Fluorite | Level 6
Here is a link to the type of heatmap. http://learnr.wordpress.com/2010/01/26/ggplot2-quick-heatmap-plotting/

Good to here GTL will get the heatmap function.
I've troed the examples above in the past and found the sizing of the scatter dots a bit messy.
GraphGuy
Meteorite | Level 14
Ahh - so, really, just a grid of colored boxes, where you control the color.
I don't have any examples 'exactly' like yours, but here are some similar,
that could probably be adapted ...

http://robslink.com/SAS/democd22/heatmap.htm
http://robslink.com/SAS/democd22/heatmap_info.htm

The technique used in this custom calendar chart could be adapted:
http://robslink.com/SAS/democd22/trend.htm
http://robslink.com/SAS/democd22/trend_info.htm

http://robslink.com/SAS/democd21/emission.htm
http://robslink.com/SAS/democd21/emission_info.htm

A gplot, similar to the sgplot that was posted:
http://robslink.com/SAS/democd10/pltwafer.htm
http://robslink.com/SAS/democd10/pltwafer_info.htm

And, most of these 'wafer maps' could be adapted to a rectangular 'heat map':
http://robslink.com/SAS/democd10/aaaindex.htm

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 2003 views
  • 1 like
  • 3 in conversation