I want to creat a graph: the X-axis is hour, the Y-axis is date, the value is continuious data(half-hourly temperature of a year) ,which was going to show with continuious color. it will look link a fingerprint.
How to code in SAS?
Thank you.
Try something like this:
proc sgplot data=temperatures;
heatmap x=hours y=date / colorresponse=values;
run;
Hope this helps!
Dan
Try something like this:
proc sgplot data=temperatures;
heatmap x=hours y=date / colorresponse=values;
run;
Hope this helps!
Dan
Thank you for your quick reply.
I have tried, but heatmap is not valid or it is used out of proper order.
I think it is the problem of my SAS edition.
What version of SAS do you have?
%put &sysvlong;
9.04.01M2P072314
Is it the version?
You have SAS 9.4m2. The HEATMAP and HEATMAPPARM statements where not introduced until SAS 9.4m3. Do you have access to that version or later?
Not yet. I'll try to get the new verison. But it maybe difficult.
Anyway, thank you so much for your kind help.
Hi Dan,
Is the version of "SAS OnDemand for Acadamic" available for heatmap?
Thanks.
Yes, it should have it.
OK, Thank you. I'll try.
Just to clarify, I think the usual name for this plot is just "heat map," although some might call it a multiple time series plot or a lasagna plot. You can read about how to create a lasagna plot in SAS. The blog post includes reference to methods that use GTL or SAS/IML, both of which support creating this graph at SAS 9.4m1.
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
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.
Ready to level-up your skills? Choose your own adventure.