<?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: How do I change the color of response surface plots? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-change-the-color-of-response-surface-plots/m-p/440685#M15209</link>
    <description>&lt;P&gt;You can edit the color model in the template.&amp;nbsp; The example code shows how you can use a DATA step to perform the edit.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data smell;
   input Odor T R H @@;
   label
      T = "Temperature"
      R = "Gas-Liquid Ratio"
      H = "Packing Height";
   datalines;
 66 40 .3 4     39 120 .3 4     43 40 .7 4     49 120 .7  4
 58 40 .5 2     17 120 .5 2     -5 40 .5 6    -40 120 .5  6
 65 80 .3 2      7  80 .7 2     43 80 .3 6    -22  80 .7  6
-31 80 .5 4    -35  80 .5 4    -26 80 .5 4
;

ods trace on;
ods html body='b.html';
ods graphics on;
proc rsreg data=smell plots=surface;
   model Odor = T R H / lackfit;
run;

proc template;
   delete Stat.Rsreg.Graphics.ContourPanel;
   source Stat.Rsreg.Graphics.ContourPanel / file='t';
quit;

data t(keep=l);
   infile 't' end=eof;
   input;
   if _n_ eq 1 then call execute('proc template;');
   _infile_ = tranwrd(_infile_, 'colormodel=TWOCOLORRAMP',
                      'colormodel=(red orange purple blue)');
   call execute(_infile_);
   if eof then call execute('quit;');                      
   run;

proc rsreg data=smell plots=surface;
   model Odor = T R H / lackfit;
run;
ods html close;

&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 27 Feb 2018 22:15:42 GMT</pubDate>
    <dc:creator>WarrenKuhfeld</dc:creator>
    <dc:date>2018-02-27T22:15:42Z</dc:date>
    <item>
      <title>How do I change the color of response surface plots?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-change-the-color-of-response-surface-plots/m-p/440643#M15203</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to change the color of the response surface plots generated using proc rsreg.&amp;nbsp;I also want to include a contour plot below the response surface plot in the same figure. What do I need to include in my code? Here's my code.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc rsreg data=DOE plots=surface(3d at (Temp=30) unpack);
model T1 = Temp Time Speed;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2018 19:21:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-change-the-color-of-response-surface-plots/m-p/440643#M15203</guid>
      <dc:creator>hjong</dc:creator>
      <dc:date>2018-02-27T19:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: How do I change the color of response surface plots?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-change-the-color-of-response-surface-plots/m-p/440685#M15209</link>
      <description>&lt;P&gt;You can edit the color model in the template.&amp;nbsp; The example code shows how you can use a DATA step to perform the edit.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data smell;
   input Odor T R H @@;
   label
      T = "Temperature"
      R = "Gas-Liquid Ratio"
      H = "Packing Height";
   datalines;
 66 40 .3 4     39 120 .3 4     43 40 .7 4     49 120 .7  4
 58 40 .5 2     17 120 .5 2     -5 40 .5 6    -40 120 .5  6
 65 80 .3 2      7  80 .7 2     43 80 .3 6    -22  80 .7  6
-31 80 .5 4    -35  80 .5 4    -26 80 .5 4
;

ods trace on;
ods html body='b.html';
ods graphics on;
proc rsreg data=smell plots=surface;
   model Odor = T R H / lackfit;
run;

proc template;
   delete Stat.Rsreg.Graphics.ContourPanel;
   source Stat.Rsreg.Graphics.ContourPanel / file='t';
quit;

data t(keep=l);
   infile 't' end=eof;
   input;
   if _n_ eq 1 then call execute('proc template;');
   _infile_ = tranwrd(_infile_, 'colormodel=TWOCOLORRAMP',
                      'colormodel=(red orange purple blue)');
   call execute(_infile_);
   if eof then call execute('quit;');                      
   run;

proc rsreg data=smell plots=surface;
   model Odor = T R H / lackfit;
run;
ods html close;

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 27 Feb 2018 22:15:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-change-the-color-of-response-surface-plots/m-p/440685#M15209</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2018-02-27T22:15:42Z</dc:date>
    </item>
  </channel>
</rss>

