<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Contour Plot with Gradient Colors in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Contour-Plot-with-Gradient-Colors/m-p/583416#M18752</link>
    <description>&lt;P&gt;Rick, your apparent understanding of the matter at hand seems to be spot on.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the moment I'm curious why you included HPSPLIT as a lead, as you know there aren't contour/gradient plots resulting.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yet, it popped into your thoroughly experienced mind.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've yet to actually try HPSPLIT.&amp;nbsp; As with all the Procs, will take some time to digest.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But, from what I see so far, using the model:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Performance = Levels Indicator #1, Levels Indicator #2, ... , Levels Indicator #n.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A regression tree will be created.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In case at hand, Performance is a continuous variable.&amp;nbsp; How a stock performs over the next three days, in percent.&amp;nbsp; No categorical variables that I can think of.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, I appreciated your article.&amp;nbsp; I'd prefer as much corroboration as possible from the charts and statistics.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thousands of hedge funds out there, surely with at least one of your counterparts on staff.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for being here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 23 Aug 2019 09:30:01 GMT</pubDate>
    <dc:creator>NKormanik</dc:creator>
    <dc:date>2019-08-23T09:30:01Z</dc:date>
    <item>
      <title>Contour Plot with Gradient Colors</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Contour-Plot-with-Gradient-Colors/m-p/579303#M18642</link>
      <description>&lt;P&gt;I'm attempting to create a contour plot (proc gcontour) that uses a gradient of colors -- ideally, dark blue, through to, red.&amp;nbsp; Dark blue would show the lowest of values.&amp;nbsp; Red, the highest.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So far I can think only of listing all colors that I'd like to use, via goptions, colors=().&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The colors would likely have to be in hexadecimal format (CXFF0000, etc.).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I want to show 20 levels on the contour plot, I'd have to come up with a 20-member list in hexadecimal format.&amp;nbsp; Somehow uniformly spaced throughout the range.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Would be really nice if SAS can automatically generate such a gradient for a contour plot.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Am I simply missing it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sure hope so.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please advise.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nicholas Kormanik&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2019 10:47:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Contour-Plot-with-Gradient-Colors/m-p/579303#M18642</guid>
      <dc:creator>NKormanik</dc:creator>
      <dc:date>2019-08-06T10:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: Contour Plot with Gradient Colors</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Contour-Plot-with-Gradient-Colors/m-p/579343#M18643</link>
      <description>&lt;P&gt;You can use the PALETTE function in SAS/IML to create custom color ramps.&lt;/P&gt;
&lt;P&gt;- &lt;A href="https://go.documentation.sas.com/?docsetId=imlug&amp;amp;docsetTarget=imlug_langref_sect332.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en" target="_self"&gt;Documentation&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;- &lt;A href="https://blogs.sas.com/content/iml/2014/10/01/colors-for-heat-maps.html" target="_self"&gt;Examples and discussion&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you switch from PROC GCONTOUR and instead&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2012/07/02/create-a-contour-plot-in-sas.html" target="_self"&gt;define a contour plot by using the GTL template and the CONTOURPLOTPARM statement,&lt;/A&gt;&amp;nbsp;then you can use&amp;nbsp;the COLORMODEL= option to define a color ramp. You can use the syntax COLORMODEL=(blue red) to define a two-color ramp that linearly interpolates between blue and red. Or you can use the built-in COLORMODEL=ThreeColorRamp to use a three-color ramp that goes from blue (low) to white (neutral) to red (high).&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2019 12:38:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Contour-Plot-with-Gradient-Colors/m-p/579343#M18643</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-08-06T12:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: Contour Plot with Gradient Colors</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Contour-Plot-with-Gradient-Colors/m-p/579554#M18644</link>
      <description>&lt;P&gt;Thank you, Rick.&amp;nbsp; Really appreciate you being available here to help.&amp;nbsp; As well as all the others.&amp;nbsp; Amazing community.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nicholas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 04:36:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Contour-Plot-with-Gradient-Colors/m-p/579554#M18644</guid>
      <dc:creator>NKormanik</dc:creator>
      <dc:date>2019-08-07T04:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: Contour Plot with Gradient Colors</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Contour-Plot-with-Gradient-Colors/m-p/579832#M18645</link>
      <description>&lt;DIV&gt;&lt;SPAN&gt;Is there any way of continuing to use &lt;STRONG&gt;PROC GCONTOUR&lt;/STRONG&gt;, and also use &lt;STRONG&gt;COLORMODEL=ThreeColorRamp&lt;/STRONG&gt;?&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;That would be exactly what I am wanting to do.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;If not, why not?&amp;nbsp; Is Proc Gcontour being deprecated?&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Thu, 08 Aug 2019 10:01:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Contour-Plot-with-Gradient-Colors/m-p/579832#M18645</guid>
      <dc:creator>NKormanik</dc:creator>
      <dc:date>2019-08-08T10:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: Contour Plot with Gradient Colors</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Contour-Plot-with-Gradient-Colors/m-p/579839#M18646</link>
      <description>&lt;P&gt;The COLORMODEL= option is supported in GTL and in the SG procedures, but not (as far as I know) in the GCONTOUR procedure. The GCONTOUR procedure uses a different syntax, which I am not very familiar with because I started learning SAS graphics when the SG (statistical graphics) procedures were being developed. I'll leave it to others to suggest ways to solve your problem by using PROC GCONTOUR.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 10:48:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Contour-Plot-with-Gradient-Colors/m-p/579839#M18646</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-08-08T10:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: Contour Plot with Gradient Colors</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Contour-Plot-with-Gradient-Colors/m-p/579891#M18648</link>
      <description>&lt;P&gt;If you want to continue to use PROC GCONTOUR, but have gradient colors, I think you best option is to go to to the color brewer site, select the pallette and number of levels you want, and put those colors in your GOPTIONS COLORS= option. Here is the URL for the site:&amp;nbsp;&lt;A href="http://colorbrewer2.org/#type=sequential&amp;amp;scheme=BuGn&amp;amp;n=3" target="_blank"&gt;http://colorbrewer2.org/#type=sequential&amp;amp;scheme=BuGn&amp;amp;n=3&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;BR /&gt;Dan&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 14:25:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Contour-Plot-with-Gradient-Colors/m-p/579891#M18648</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2019-08-08T14:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: Contour Plot with Gradient Colors</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Contour-Plot-with-Gradient-Colors/m-p/580043#M18649</link>
      <description>&lt;P&gt;Terrific site, Dan.&amp;nbsp; Will do that for now, just add colors in goptions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But will have to learn the SG procedures as well, as Rick suggests.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 01:27:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Contour-Plot-with-Gradient-Colors/m-p/580043#M18649</guid>
      <dc:creator>NKormanik</dc:creator>
      <dc:date>2019-08-09T01:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: Contour Plot with Gradient Colors</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Contour-Plot-with-Gradient-Colors/m-p/580074#M18650</link>
      <description>&lt;P&gt;Beautiful....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="_50401_23401_23403_.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/31610iDA3016A0C83DE493/image-size/large?v=v2&amp;amp;px=999" role="button" title="_50401_23401_23403_.png" alt="_50401_23401_23403_.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 06:16:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Contour-Plot-with-Gradient-Colors/m-p/580074#M18650</guid>
      <dc:creator>NKormanik</dc:creator>
      <dc:date>2019-08-09T06:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: Contour Plot with Gradient Colors</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Contour-Plot-with-Gradient-Colors/m-p/580132#M18651</link>
      <description>&lt;P&gt;Just for completeness, I'll mention that the color list could also be specified on the CLEVELS option instead of the GOPTIONS COLORS= option. That way, the colors would not affect any other SAS/Graph plots or force you to do a GOPTIONS RESET=ALL before generating the next plot.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;BR /&gt;Dan&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 14:16:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Contour-Plot-with-Gradient-Colors/m-p/580132#M18651</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2019-08-09T14:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: Contour Plot with Gradient Colors</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Contour-Plot-with-Gradient-Colors/m-p/580314#M18659</link>
      <description>&lt;P&gt;One more question....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I vaguely recollect that SAS holds somewhere -- at least temporarily -- nearly every aspect of the output of all procedures.&amp;nbsp; Sort of hidden away.&amp;nbsp; That if you want to extract/save any of this, it's possible.&amp;nbsp; If you just know where exactly to find it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, in the contour plot above, at bottom, is the legend, specifying the contour levels.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to save that data vector, in .sas7bdat, or in .txt, etc., format.&amp;nbsp; And give the extracted/saved file a name -- i.e., "contour_levels_xyz.sas7bdat".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any continuing help greatly appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Aug 2019 07:44:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Contour-Plot-with-Gradient-Colors/m-p/580314#M18659</guid>
      <dc:creator>NKormanik</dc:creator>
      <dc:date>2019-08-10T07:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: Contour Plot with Gradient Colors</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Contour-Plot-with-Gradient-Colors/m-p/580351#M18662</link>
      <description>&lt;P&gt;You might be thinking about &lt;A href="https://blogs.sas.com/content/iml/2017/01/09/ods-output-any-statistic.html" target="_self"&gt;using ODS OUTPUT to save tables into data sets.&lt;/A&gt;&amp;nbsp;You can also use ODS OUTPUT to &lt;A href="https://blogs.sas.com/content/iml/2012/08/01/data-fro-ods-graphics.html" target="_self"&gt;output the data values on the ODS statistical graphics that are created from SAS procedures or from the SG procedures&lt;/A&gt;. That is one of the advantages to using ODS GRAPHICS: all output goes through ODS which means you can select it, store it, send it to various destinations, etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Aug 2019 12:39:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Contour-Plot-with-Gradient-Colors/m-p/580351#M18662</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-08-10T12:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: Contour Plot with Gradient Colors</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Contour-Plot-with-Gradient-Colors/m-p/580380#M18663</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks, Rick.&amp;nbsp; Great lead.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately in the present case only output is the original input data set.&amp;nbsp; No sign at all of the &lt;STRONG&gt;vector of numbers used for the contour divisions&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps this is an additional reason to move on to SG, GTL, IML, whatever.&amp;nbsp; Maybe one of these can produce a contour map with savable contour divisions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If anyone wants to help get there.....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Aug 2019 05:35:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Contour-Plot-with-Gradient-Colors/m-p/580380#M18663</guid>
      <dc:creator>NKormanik</dc:creator>
      <dc:date>2019-08-11T05:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: Contour Plot with Gradient Colors</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Contour-Plot-with-Gradient-Colors/m-p/580384#M18664</link>
      <description>&lt;P&gt;Do you know (or can you determine) the maximum and minimum value of the surface on the rectangular domain that you are plotting?&lt;/P&gt;
&lt;P&gt;If so, you can determine the contour levels.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Contours are determined by evenly spaced subdivisions in the range of the Z value of the data. So if you want M contours then they are positions at&amp;nbsp;&lt;/P&gt;
&lt;P&gt;z = Zmin + k*dz, for k=1, 2, 3, ..., M&lt;/P&gt;
&lt;P&gt;and dz = (ZMax = ZMin) / (M+1)&lt;/P&gt;
&lt;P&gt;where ZMin = min(z on rectangular domain) and ZMax = max(z on rectangular domain).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, in your picture, it looks like&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ZMin ~ -20.5&lt;/P&gt;
&lt;P&gt;ZMax ~ 21.6&lt;/P&gt;
&lt;P&gt;and you have M=18 contours so&lt;/P&gt;
&lt;P&gt;dz = (21.6 - (-20.5) / 19=&amp;nbsp;2.216 and the contours are at the heights&lt;/P&gt;
&lt;P&gt;z1 = -20.5 + &amp;nbsp;2.216;&lt;/P&gt;
&lt;P&gt;z2 = -20.5 +&amp;nbsp; 2* 2.216;&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Levels;
zMax = 21.6;   /* max of surface on rectangle */
zMin = -20.5;
M = 18;        /* number of contours */
dz = (zMax - zMin) / (M+1);
do i = 1 to M;
   z = zMin + i*dz;
   output;
end;
run;

proc print data=levels;
var i z;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Aug 2019 10:13:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Contour-Plot-with-Gradient-Colors/m-p/580384#M18664</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-08-11T10:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: Contour Plot with Gradient Colors</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Contour-Plot-with-Gradient-Colors/m-p/580462#M18672</link>
      <description>&lt;P&gt;Beautifully shown, Rick.&amp;nbsp; Good for my own understanding and reference, as well as useful for others.&amp;nbsp; Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;Do you know (or can you determine) the maximum and minimum value of the surface on the rectangular domain that you are plotting?&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Well, I was hoping that the contour process itself would give me those values.&amp;nbsp; I have hundreds of such data sets to examine.&amp;nbsp; If I could have extracted contour vectors for each one, I was then hoping to cluster-analyze them.&amp;nbsp; Without the data I will simply have to eyeball the graphs, to try to make sense somehow.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;At any rate, I may have been overestimating the value of capturing those contour values.&amp;nbsp; May be better to proceed on to other avenues.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The objective, though, is to study &lt;STRONG&gt;3D representations of data sets&lt;/STRONG&gt;.&amp;nbsp; Will presently turn to&amp;nbsp;proc loess,&amp;nbsp;proc kde,&amp;nbsp;proc krige2d, etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Of these, are you particularly keen on one versus another?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All comments welcome.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2019 06:22:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Contour-Plot-with-Gradient-Colors/m-p/580462#M18672</guid>
      <dc:creator>NKormanik</dc:creator>
      <dc:date>2019-08-12T06:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: Contour Plot with Gradient Colors</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Contour-Plot-with-Gradient-Colors/m-p/580519#M18673</link>
      <description>&lt;P&gt;I have some experience with those procedures. They do different things:&lt;/P&gt;
&lt;P&gt;1) LOESS assumes that Z (the response) is a nonparametric of (X, Y). &lt;A href="https://blogs.sas.com/content/iml/2016/10/17/what-is-loess-regression.html" target="_self"&gt;Local weighted regression is used to predict Z.&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;2) KDE is quite different. &lt;A href="https://blogs.sas.com/content/iml/2016/08/01/highest-density-regions-sas.html" target="_self"&gt;It estimates the density of (X, Y).&lt;/A&gt; It does not predict a third variable, Z.&lt;/P&gt;
&lt;P&gt;3) KRIGE2D is a spatial analysis procedure. You should use it only if your (X, Y) data represent coordinates (spatial locations) in some field or forest.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are other procedures such as PROC GLMMIX and &lt;A href="https://blogs.sas.com/content/iml/2016/03/23/nonparametric-regression-binary-response-sas.html" target="_self"&gt;PROC GAMPL&lt;/A&gt; that can model responses by using parametric or nonparametric models.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Which procedure I would recommend depends on what you are trying to accomplish. I do not know what you mean by "&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;3D representations of data sets." &lt;/STRONG&gt;Do you have a reference, or can you describe the business use for the analysis?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2019 12:05:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Contour-Plot-with-Gradient-Colors/m-p/580519#M18673</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-08-12T12:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: Contour Plot with Gradient Colors</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Contour-Plot-with-Gradient-Colors/m-p/580726#M18675</link>
      <description>&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;I've been trying to ascertain if there is any legitimacy to "stock trading, technical analysis."&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;As I see it, the main problem is all the 'noise.'&amp;nbsp; Randomness going on.&amp;nbsp; Inconsistency.&amp;nbsp; No sure thing.&amp;nbsp; But wondering if there exist some general tendencies.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;I've collected the following data:&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Y = price change over the next three days&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;X1 = a particular level of one 'technical indicator' today&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;X2 = a particular level of a second 'technical indicator' today&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Data for some stock, over a number of years.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Please refer to the contour chart posted above several days ago.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Assuming someone is going to trade -- even given all the risks and randomness -- then it appears from the contour chart that the optimal time to trade is when:&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;X1 ("23403") is low.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;X2 ("23401") is high.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;This theoretically should be associated with Y ("50401") being high.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;No certainty, of course.&amp;nbsp; But at least one would be taking statistics into account.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;A contour chart seems like it could be one approach to solving the problem.&amp;nbsp; Hoping there are others, as well, such as Proc Loess, etc.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 13 Aug 2019 07:49:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Contour-Plot-with-Gradient-Colors/m-p/580726#M18675</guid>
      <dc:creator>NKormanik</dc:creator>
      <dc:date>2019-08-13T07:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: Contour Plot with Gradient Colors</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Contour-Plot-with-Gradient-Colors/m-p/580746#M18677</link>
      <description>&lt;P&gt;I see. You might want to overlay the data on the contour plot. If the explanatory variables are correlated (which they probably are), the corner of the plots (which you think are optimal) might be outside the range of the data. You might be looking at the extrapolated predictions. Models will have high prediction errors and can even predict nonsensical results when you evaluate the model outside the range of the data. See the article &lt;A href="https://blogs.sas.com/content/iml/2019/03/18/interpolation-extrapolation-convex-hull.html" target="_self"&gt;"Interpolation vs extrapolation: the convex hull of multivariate data"&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyway, don't use kriging or any other spatial analysis procedure since you do not have spatial data.&amp;nbsp; Good luck.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2019 09:51:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Contour-Plot-with-Gradient-Colors/m-p/580746#M18677</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-08-13T09:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: Contour Plot with Gradient Colors</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Contour-Plot-with-Gradient-Colors/m-p/580805#M18680</link>
      <description>&lt;P&gt;Here's how to do it with Proc GContour, and let the ODS Style generate the color ramp for you ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc template;&lt;BR /&gt;define style styles.my_grad;&lt;BR /&gt;parent=styles.htmlblue;&lt;BR /&gt;style twocolorramp / startcolor=red endcolor=navy;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods html style=my_grad;&lt;BR /&gt;proc gcontour data=sashelp.lake;&lt;BR /&gt;plot width*length=depth / nolegend pattern;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gconto10.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/31702iDE5BF4D5EF88F436/image-size/large?v=v2&amp;amp;px=999" role="button" title="gconto10.png" alt="gconto10.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2019 13:46:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Contour-Plot-with-Gradient-Colors/m-p/580805#M18680</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2019-08-13T13:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: Contour Plot with Gradient Colors</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Contour-Plot-with-Gradient-Colors/m-p/581014#M18692</link>
      <description>&lt;P&gt;Thanks, Robert.&amp;nbsp; Great addition here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And thanks again, Rick.&amp;nbsp; Your suggestions are always so clear.&amp;nbsp; Terrific.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2019 08:10:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Contour-Plot-with-Gradient-Colors/m-p/581014#M18692</guid>
      <dc:creator>NKormanik</dc:creator>
      <dc:date>2019-08-14T08:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: Contour Plot with Gradient Colors</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Contour-Plot-with-Gradient-Colors/m-p/582321#M18714</link>
      <description>&lt;P&gt;Below is a contour/gradient chart produced by Proc LOESS, using the same data as above:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Proc Loess.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/31853i91A89F082800EF8B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Proc Loess.png" alt="Proc Loess.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Notice how it differs greatly from the contour chart from Proc GCONTOUR (way above).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The difference seems primarily due to two Proc LOESS model parameters:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;degree = 2&lt;BR /&gt;interp=cubic&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Clueless as to what to use, frankly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Other SAS procedures that appear to hold promise in producing a fitting contour/gradient representation are:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc GAM&lt;/P&gt;
&lt;P&gt;Proc&amp;nbsp;&lt;SPAN&gt;GAMPL&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Researching at present how to use these.&amp;nbsp; Are they even appropriate.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Objective, once again:&amp;nbsp; X1, X2 ---&amp;gt; Y.&amp;nbsp; Graphically.&amp;nbsp; Contour.&amp;nbsp; Gradient.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any leads greatly appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nicholas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2019 07:01:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Contour-Plot-with-Gradient-Colors/m-p/582321#M18714</guid>
      <dc:creator>NKormanik</dc:creator>
      <dc:date>2019-08-20T07:01:10Z</dc:date>
    </item>
  </channel>
</rss>

