<?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 Change color of conficence interval in SGPLOT in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Change-color-of-conficence-interval-in-SGPLOT/m-p/341178#M11847</link>
    <description>&lt;P&gt;Hi all!&lt;/P&gt;&lt;P&gt;I want to change the color for my clm in my regression in sgplot. I've formed a teplete for the lines (color and dashing), but don't know how I do it for the clm.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc template;&lt;BR /&gt;define style styles.mystyle;&lt;BR /&gt;parent=styles.default;&lt;BR /&gt;style body from body / background = white;&lt;BR /&gt;class graphbackground / color=white;&lt;BR /&gt;style GraphData1 from GraphData1 / contrastcolor=DAGRAY linestyle=5 ;&lt;BR /&gt;style GraphData2 from GraphData2 / contrastcolor=MEGR linestyle=4;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanx for you help!&lt;/P&gt;</description>
    <pubDate>Wed, 15 Mar 2017 13:25:25 GMT</pubDate>
    <dc:creator>Emilia</dc:creator>
    <dc:date>2017-03-15T13:25:25Z</dc:date>
    <item>
      <title>Change color of conficence interval in SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Change-color-of-conficence-interval-in-SGPLOT/m-p/341178#M11847</link>
      <description>&lt;P&gt;Hi all!&lt;/P&gt;&lt;P&gt;I want to change the color for my clm in my regression in sgplot. I've formed a teplete for the lines (color and dashing), but don't know how I do it for the clm.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc template;&lt;BR /&gt;define style styles.mystyle;&lt;BR /&gt;parent=styles.default;&lt;BR /&gt;style body from body / background = white;&lt;BR /&gt;class graphbackground / color=white;&lt;BR /&gt;style GraphData1 from GraphData1 / contrastcolor=DAGRAY linestyle=5 ;&lt;BR /&gt;style GraphData2 from GraphData2 / contrastcolor=MEGR linestyle=4;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanx for you help!&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2017 13:25:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Change-color-of-conficence-interval-in-SGPLOT/m-p/341178#M11847</guid>
      <dc:creator>Emilia</dc:creator>
      <dc:date>2017-03-15T13:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: Change color of conficence interval in SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Change-color-of-conficence-interval-in-SGPLOT/m-p/341208#M11848</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Copied from:&lt;/P&gt;
&lt;P&gt;Paper 095-2011&lt;/P&gt;
&lt;P&gt;The Power to Plot: Three Ways to Enhance SG Graphical Outputs&lt;/P&gt;
&lt;P&gt;Xiangxiang Meng, University of Cincinnati, Cincinnati, OH&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/resources/papers/proceedings11/095-2011.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings11/095-2011.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In general, graphical outputs are controlled by the style elements with prefix "Graph". For instance, GraphConfidence&lt;BR /&gt;is for the confidence area, and GraphLegendBackground is for the background of the legend. The objected-oriented&lt;BR /&gt;nature of ODS style definition makes it very easy and flexible to add or adjust graphical elements in a ODS style:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*[Example 4.1] Simple examples for applying modified ODS style;
proc template;
 define style styles.LasVegas1;
   parent = styles.default;
   style GraphConfidence from GraphConfidence / color=CXE8D898;
   style GraphLegendBackground                / transparency=1;
 end;
run;
ods html style=LasVegas1;
proc sgplot data=cars_small;
  reg     x=weight y=MSRP / degree=2 clm;
  scatter x=weight y=invoice;
run; quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This example changes the color of the confidence area and makes the legend transparent. Note that the second&lt;BR /&gt;class "GraphLegendBackground" is created instead of from inheritance since no such class has been defined in the&lt;BR /&gt;ODS style DEFAULT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2017 14:43:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Change-color-of-conficence-interval-in-SGPLOT/m-p/341208#M11848</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2017-03-15T14:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: Change color of conficence interval in SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Change-color-of-conficence-interval-in-SGPLOT/m-p/341514#M11854</link>
      <description>&lt;P&gt;Thank you!!&lt;/P&gt;&lt;P&gt;I had to modify it since I have two groups. This worked in the end:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;style GraphData1 from GraphData1 /color =#8C8C8C linestyle=4 contrastcolor=DAGR ;&lt;BR /&gt;style GraphData2 from GraphData2 /color= #BFBFBF linestyle=4 contrastcolor=DAGRAY;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best/&lt;/P&gt;&lt;P&gt;Emilia&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2017 10:16:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Change-color-of-conficence-interval-in-SGPLOT/m-p/341514#M11854</guid>
      <dc:creator>Emilia</dc:creator>
      <dc:date>2017-03-16T10:16:40Z</dc:date>
    </item>
  </channel>
</rss>

