<?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 How do I change the CLM colors for LOESS SGPLOT grouped data, with unique colors for each group? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-change-the-CLM-colors-for-LOESS-SGPLOT-grouped-data/m-p/623939#M19438</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have data that I am creating a Loess graph, that is categorized into two groups by cortisol median. I am trying to change the CLM colors from the default red and blue, and want them to match the color of the trendline and data points. I have identified how to change the CLM colors to the same color, but am not sure how to make them two different colors. Can anyone help?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics on / width=6in;
ods graphics on / height=6in;


proc sgplot data=loess_data_ln aspect=1;
 Where rankcategory=175 &amp;amp; depanx=1  &amp;amp; hormone=1 &amp;amp; gender=0;
 LOESS Y=meanscore X=hormonemean_ln /group=cortisolmedian smooth=0.9 alpha=0.05  CLMattrs=(CLMFILLATTRS=(color=pink transparency=0.35)) degree=1 clm; 
 XAXIS grid label ="Testosterone, pg/mL" LABELATTRS=(family=arial size=12)min=2 max=5 valueattrs=(family=arial size=12pt) ; 
 YAXIS grid label="CDI-2 Mean Score" LABELATTRS=(family=arial size=12 ) valueattrs=( family=arial size=12pt) max=90  ;
 styleattrs datacontrastcolors=(VLIGB VIGB) datalinepatterns=(1)
 			datasymbols=(circlefilled) ;
 keylegend/ title=" " valueattrs=( family=arial size=12pt) ;
 format cortisolmedian cortisolmedianfmt. depanx depanxfmt. hormone hormonefmt.;
 title " " ;
	
run; &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SGPlot29.png" style="width: 576px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/36021i4873006D1DAC90E5/image-size/large?v=v2&amp;amp;px=999" role="button" title="SGPlot29.png" alt="SGPlot29.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Feb 2020 18:55:29 GMT</pubDate>
    <dc:creator>bchronister</dc:creator>
    <dc:date>2020-02-11T18:55:29Z</dc:date>
    <item>
      <title>How do I change the CLM colors for LOESS SGPLOT grouped data, with unique colors for each group?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-change-the-CLM-colors-for-LOESS-SGPLOT-grouped-data/m-p/623939#M19438</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have data that I am creating a Loess graph, that is categorized into two groups by cortisol median. I am trying to change the CLM colors from the default red and blue, and want them to match the color of the trendline and data points. I have identified how to change the CLM colors to the same color, but am not sure how to make them two different colors. Can anyone help?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics on / width=6in;
ods graphics on / height=6in;


proc sgplot data=loess_data_ln aspect=1;
 Where rankcategory=175 &amp;amp; depanx=1  &amp;amp; hormone=1 &amp;amp; gender=0;
 LOESS Y=meanscore X=hormonemean_ln /group=cortisolmedian smooth=0.9 alpha=0.05  CLMattrs=(CLMFILLATTRS=(color=pink transparency=0.35)) degree=1 clm; 
 XAXIS grid label ="Testosterone, pg/mL" LABELATTRS=(family=arial size=12)min=2 max=5 valueattrs=(family=arial size=12pt) ; 
 YAXIS grid label="CDI-2 Mean Score" LABELATTRS=(family=arial size=12 ) valueattrs=( family=arial size=12pt) max=90  ;
 styleattrs datacontrastcolors=(VLIGB VIGB) datalinepatterns=(1)
 			datasymbols=(circlefilled) ;
 keylegend/ title=" " valueattrs=( family=arial size=12pt) ;
 format cortisolmedian cortisolmedianfmt. depanx depanxfmt. hormone hormonefmt.;
 title " " ;
	
run; &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SGPlot29.png" style="width: 576px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/36021i4873006D1DAC90E5/image-size/large?v=v2&amp;amp;px=999" role="button" title="SGPlot29.png" alt="SGPlot29.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2020 18:55:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-change-the-CLM-colors-for-LOESS-SGPLOT-grouped-data/m-p/623939#M19438</guid>
      <dc:creator>bchronister</dc:creator>
      <dc:date>2020-02-11T18:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: How do I change the CLM colors for LOESS SGPLOT grouped data, with unique colors for each group?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-change-the-CLM-colors-for-LOESS-SGPLOT-grouped-data/m-p/623969#M19439</link>
      <description>&lt;P&gt;use the DATACOLOR= option on the STYLEATTRS statement:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=sashelp.iris;
 Where species in ("Setosa", "Virginica");
 styleattrs datacontrastcolors=(VLIGB VIGB)
            datacolors=(VLIG VIB) ;
 LOESS Y=SepalLength X=SepalWidth /group=Species smooth=0.9 alpha=0.05  
       CLMattrs=(CLMFILLATTRS=(transparency=0.35)) degree=1 clm; 
 XAXIS grid; 
 YAXIS grid;
run; &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 11 Feb 2020 19:26:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-change-the-CLM-colors-for-LOESS-SGPLOT-grouped-data/m-p/623969#M19439</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2020-02-11T19:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: How do I change the CLM colors for LOESS SGPLOT grouped data, with unique colors for each group?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-change-the-CLM-colors-for-LOESS-SGPLOT-grouped-data/m-p/623978#M19440</link>
      <description>&lt;P&gt;That worked, thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2020 19:40:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-change-the-CLM-colors-for-LOESS-SGPLOT-grouped-data/m-p/623978#M19440</guid>
      <dc:creator>bchronister</dc:creator>
      <dc:date>2020-02-11T19:40:50Z</dc:date>
    </item>
  </channel>
</rss>

