01-14-2009 12:15 PM
01-14-2009 01:19 PM
01-17-2009 03:37 PM
12-24-2011 02:02 PM
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.
Grateful for any hints.
12-24-2011 05:20 PM
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!
12-24-2011 07:19 PM
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
12-24-2011 08:22 PM
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:
12-24-2011 09:38 PM
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.
12-26-2011 01:01 PM
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.
12-26-2011 01:21 PM
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?