Hey All,
I want to code the following contour plot using SGplot because I need to backtransform the variables.
It was generated with this code:
ods output contourfitPlot=cntrssd;
proc plm restore=an.mod1272_21;
effectplot contour(x=depth y=tempst );
and the data looks like this:
Obs _PREDICTED _XCONT2 _XCONT1
1 0.16656 -3.28626 -1.38299
2 0.16345 -3.17094 -1.38299
3 0.16038 -3.05562 -1.38299
Does anyone know how to do this?
Thanks very much!
Here are a lot of examples with code:
https://blogs.sas.com/content/?s=contour
Keep a link to the site:
https://blogs.sas.com/content/graphicallyspeaking/
As it is a great reference for any graph you can think of.
SGPLOT does not support contours. But GTL does. Please see this sample:
Thanks All!
I wonder if SAS has a repository where it stores the code for its automatic plots?
Maybe there are too many choices for this?
Yes, the repository is the template library. See many of Warren Kuhfeld's books and blog posts for how to use graph templates, For a concise overview, see the SAS/STAT documentation on graph temp[lates.
For this contour plot example, I suggest the article "Create a contour plot in SAS."
Thanks all!
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.