Greetings - I may have a similar problem. I am trying to lever off http://support.sas.com/kb/41/776.html using the coordinates for a set of parkings spaces in a schematic of a parking lot for which I have data on utilization by space. The idea is to replicate a project I did in R which creates a series of heat maps for various space utilization metrics.
The code works nicely - the spaces are drawn in the right places, etc. The problem is that nothing I've tried has any useful influence on the color - I can't get anything other than a range of shades of a medium-light brown to white or a mess of several solid and numerous cross-hatched, etc., patterns after fiddling with REsults/Graphs options.
EG4.1, WinXP
Grateful for any hints.
Galen
Possibly one of Robert Allison's examples might help: http://robslink.com/SAS/democd22/heatmap_info.htm
Many thanks - that is an interesting piece of code, but I am looking for a true heat map with a large number of (and automagically-determined) shades between red and green.
I ran my code on my work laptop (EG 4.3) and it works as intended, with 64 gradations of color.
Since EG4.1 expires in a week, I'll just chalk it up to a limitation of 4.1.
Many thanks again, Merry Christmas, and all that good stuff!
How about: http://support.sas.com/kb/35/156.html
Yep, I found that one and tried (unsuccessfully) to graft its tricks into my code.
I couldn't get that code to run, as-is, anyway, as it throws tons of errors. I can't believe something rife with bad coding would be posted on SAS' own website, so the errors must be due to the absence of something on my system that the author assumes the user to have.
Does http://support.sas.com/kb/35/156.html run on your system?
I do have SAS/GRAPH available, according to _PRODSAVAIL
Yes. I had to change the directory of the ouput file to an existing directory on my machine, but that is the only line I had to change. I don't know if I can post a picture but, if I can, here is the final file I obtained:
Thanks for that tip. I still can't get it to run on my EG4.1.SAS9.1 machine, I'll try again in a day or two on my work machine. The DNA microarray is the sort of thing I'm trying to accomplish, only with yellow instead of black as the neutral color.
You mentioned a critical number in your last post. The code provided by SAS was made for SAS 9.2 thus could easily contain things that won't work on older versions.
http://support.sas.com/kb/35/156.html hangs on "template...unable to write to template store," so there's clearly something else I've not modified to work on my computer, even under 9.3. I do not have SAS/GRAPH, so maybe that's another problem.
Anyway, I'm going to forego the 9.3 bells and whistles and return to seeing what I can work out on my personal 9.1 version. I've begun fiddling with this: http://support.sas.com/documentation/cdl/en/graphref/63022/HTML/default/viewer.htm#gr27n02-ex.htm , but without a great deal of luck so far. I've found the same example in the 9.1 documentation, so I should be able to get something to work.
Thanks!
The first thing that I can't seem to control is the height and width of the area in gslide. For example, if I change a couple of the y values to 110 or so (yes, a pointless shape, but please try it), a large part of the shape's area is off the graph entirely. What options need I throw at gslide so that the graph area expands to include larger numbers?
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.