<?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: proc sgplot density curve is given with group by clause.How to give lineattrs color in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/proc-sgplot-density-curve-is-given-with-group-by-clause-How-to/m-p/640687#M9049</link>
    <description>&lt;P&gt;Here is what&amp;nbsp; I got.&lt;/P&gt;
&lt;PRE&gt; 
 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 68         
 69         proc sgplot data=sashelp.heart;
 70         styleattrs datacolors=(red blue) datacontrastcolors=(red blue);
 71         histogram height /fillattrs=(color=red );
 72         density height/group=sex;
 73         run;
 
 NOTE: “PROCEDURE SGPLOT”所用时间（总处理时间）:
       实际时间          0.17 秒
       用户 CPU 时间     0.09 秒
       系统 CPU 时间     0.02 秒
       内存              9018.00k
       OS 内存           34604.00k
       时间戳           2020-04-17 上午11:42:53
       Step Count                        114  Switch Count  5
       页错误数                       0
       页回收数                     1936
       页交换数                        0
       主动上下文切换数        1293
       被动上下文切换数      0
       块输入操作数            0
       块输出操作数           1624
       
 NOTE: 从数据集 SASHELP.HEART. 读取了 5209 个观测
 
 74         
 75         
 76         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 86         &lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="x.png" style="width: 653px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/38372i01264257A07249A8/image-size/large?v=v2&amp;amp;px=999" role="button" title="x.png" alt="x.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 17 Apr 2020 11:44:10 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2020-04-17T11:44:10Z</dc:date>
    <item>
      <title>proc sgplot density curve is given with group by clause.How to give lineattrs color</title>
      <link>https://communities.sas.com/t5/SAS-Studio/proc-sgplot-density-curve-is-given-with-group-by-clause-How-to/m-p/640672#M9045</link>
      <description>&lt;PRE&gt;proc sgplot data= titanic ;

histogram passengers&amp;nbsp; /fillattrs=(color='red');

density cred /group=sex&amp;nbsp; lineattrs=(color= 'red' 'blue')

;run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to give two different color to sex (&lt;FONT color="#FF0000"&gt;male&lt;/FONT&gt; and &lt;FONT color="#333399"&gt;female&lt;/FONT&gt;) .How to do give red color to male and blue color to female.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2020 10:54:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/proc-sgplot-density-curve-is-given-with-group-by-clause-How-to/m-p/640672#M9045</guid>
      <dc:creator>ratika2</dc:creator>
      <dc:date>2020-04-17T10:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot density curve is given with group by clause.How to give lineattrs color</title>
      <link>https://communities.sas.com/t5/SAS-Studio/proc-sgplot-density-curve-is-given-with-group-by-clause-How-to/m-p/640678#M9046</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=sashelp.heart;
styleattrs datacolors=(red blue) datacontrastcolors=(red blue);
histogram height /fillattrs=(color='red');
density height/group=sex;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 17 Apr 2020 11:23:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/proc-sgplot-density-curve-is-given-with-group-by-clause-How-to/m-p/640678#M9046</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-04-17T11:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot density curve is given with group by clause.How to give lineattrs color</title>
      <link>https://communities.sas.com/t5/SAS-Studio/proc-sgplot-density-curve-is-given-with-group-by-clause-How-to/m-p/640684#M9047</link>
      <description>Sorry, but its displaying syntax error. My query is regarding giving different colors to group variable in density plot. Giving lineattrs display only one color for both group variable. I need to display different colors to density plot line.</description>
      <pubDate>Fri, 17 Apr 2020 11:35:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/proc-sgplot-density-curve-is-given-with-group-by-clause-How-to/m-p/640684#M9047</guid>
      <dc:creator>ratika2</dc:creator>
      <dc:date>2020-04-17T11:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot density curve is given with group by clause.How to give lineattrs color</title>
      <link>https://communities.sas.com/t5/SAS-Studio/proc-sgplot-density-curve-is-given-with-group-by-clause-How-to/m-p/640685#M9048</link>
      <description>&lt;P&gt;please try the bellow code&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data= titanic ;
styleattrs datacolors=(red blue) datacontrastcolors=(red blue);
histogram passengers  /fillattrs=(color='red');
density cred /group=sex  ;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 17 Apr 2020 11:42:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/proc-sgplot-density-curve-is-given-with-group-by-clause-How-to/m-p/640685#M9048</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2020-04-17T11:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot density curve is given with group by clause.How to give lineattrs color</title>
      <link>https://communities.sas.com/t5/SAS-Studio/proc-sgplot-density-curve-is-given-with-group-by-clause-How-to/m-p/640687#M9049</link>
      <description>&lt;P&gt;Here is what&amp;nbsp; I got.&lt;/P&gt;
&lt;PRE&gt; 
 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 68         
 69         proc sgplot data=sashelp.heart;
 70         styleattrs datacolors=(red blue) datacontrastcolors=(red blue);
 71         histogram height /fillattrs=(color=red );
 72         density height/group=sex;
 73         run;
 
 NOTE: “PROCEDURE SGPLOT”所用时间（总处理时间）:
       实际时间          0.17 秒
       用户 CPU 时间     0.09 秒
       系统 CPU 时间     0.02 秒
       内存              9018.00k
       OS 内存           34604.00k
       时间戳           2020-04-17 上午11:42:53
       Step Count                        114  Switch Count  5
       页错误数                       0
       页回收数                     1936
       页交换数                        0
       主动上下文切换数        1293
       被动上下文切换数      0
       块输入操作数            0
       块输出操作数           1624
       
 NOTE: 从数据集 SASHELP.HEART. 读取了 5209 个观测
 
 74         
 75         
 76         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 86         &lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="x.png" style="width: 653px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/38372i01264257A07249A8/image-size/large?v=v2&amp;amp;px=999" role="button" title="x.png" alt="x.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2020 11:44:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/proc-sgplot-density-curve-is-given-with-group-by-clause-How-to/m-p/640687#M9049</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-04-17T11:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot density curve is given with group by clause.How to give lineattrs color</title>
      <link>https://communities.sas.com/t5/SAS-Studio/proc-sgplot-density-curve-is-given-with-group-by-clause-How-to/m-p/640716#M9050</link>
      <description>&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2020 13:03:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/proc-sgplot-density-curve-is-given-with-group-by-clause-How-to/m-p/640716#M9050</guid>
      <dc:creator>ratika2</dc:creator>
      <dc:date>2020-04-17T13:03:15Z</dc:date>
    </item>
  </channel>
</rss>

