<?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 - rgb plot colors in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-rgb-plot-colors/m-p/518925#M17528</link>
    <description>&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Programming/proc-sgplot-stacked-bar-chart-horizontal-with-RGB-colors/m-p/518636" target="_self"&gt;Same answer as yesterday,&lt;/A&gt; use DATACONTRASTCOLORS and DATACOLORS on the STYLEATTRS statement.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or use a data attribute map.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/grstatproc/65235/HTML/default/viewer.htm#n18szqcwir8q2nn10od9hhdh2ksj.htm" target="_blank"&gt;https://support.sas.com/documentation/cdl/en/grstatproc/65235/HTML/default/viewer.htm#n18szqcwir8q2nn10od9hhdh2ksj.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Different ways of specifying colors are listed here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=graphref&amp;amp;docsetTarget=p0edl20cvxxmm9n1i9ht3n21eict.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#n0ye3r7vscamjun1uxyzeo84xml2" target="_blank"&gt;https://documentation.sas.com/?docsetId=graphref&amp;amp;docsetTarget=p0edl20cvxxmm9n1i9ht3n21eict.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#n0ye3r7vscamjun1uxyzeo84xml2&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS. I'll also move this post to the graphics forum again.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/153469"&gt;@radhikaa4&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi I have this certain code&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;sgplot&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=a.data_out;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;hbar&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; trt_group / &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;response&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=Percent &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;group&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=scales &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;groupdisplay&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=stack ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;I would like to use RGB color format for 'scales' variables. I used pattern but it won't work&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;Scales variables has&amp;nbsp;7 ordinal scales: 0, 1, 2, 3, 4, 5, 6&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;Any help would be great!&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;BR /&gt;THanks&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;Radhika&lt;/FONT&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 05 Dec 2018 19:58:56 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-12-05T19:58:56Z</dc:date>
    <item>
      <title>proc sgplot - rgb plot colors</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-rgb-plot-colors/m-p/518919#M17527</link>
      <description>&lt;P&gt;Hi I have this certain code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;sgplot&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=a.data_out;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;hbar&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; trt_group / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;response&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=Percent &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;group&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=scales &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;groupdisplay&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=stack ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;I would like to use RGB color format for 'scales' variables. I used pattern but it won't work&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;Scales variables has&amp;nbsp;7 ordinal scales: 0, 1, 2, 3, 4, 5, 6&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;Any help would be great!&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;BR /&gt;THanks&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;Radhika&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Dec 2018 19:50:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-rgb-plot-colors/m-p/518919#M17527</guid>
      <dc:creator>radhikaa4</dc:creator>
      <dc:date>2018-12-05T19:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot - rgb plot colors</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-rgb-plot-colors/m-p/518925#M17528</link>
      <description>&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Programming/proc-sgplot-stacked-bar-chart-horizontal-with-RGB-colors/m-p/518636" target="_self"&gt;Same answer as yesterday,&lt;/A&gt; use DATACONTRASTCOLORS and DATACOLORS on the STYLEATTRS statement.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or use a data attribute map.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/grstatproc/65235/HTML/default/viewer.htm#n18szqcwir8q2nn10od9hhdh2ksj.htm" target="_blank"&gt;https://support.sas.com/documentation/cdl/en/grstatproc/65235/HTML/default/viewer.htm#n18szqcwir8q2nn10od9hhdh2ksj.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Different ways of specifying colors are listed here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=graphref&amp;amp;docsetTarget=p0edl20cvxxmm9n1i9ht3n21eict.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#n0ye3r7vscamjun1uxyzeo84xml2" target="_blank"&gt;https://documentation.sas.com/?docsetId=graphref&amp;amp;docsetTarget=p0edl20cvxxmm9n1i9ht3n21eict.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#n0ye3r7vscamjun1uxyzeo84xml2&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS. I'll also move this post to the graphics forum again.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/153469"&gt;@radhikaa4&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi I have this certain code&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;sgplot&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=a.data_out;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;hbar&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; trt_group / &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;response&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=Percent &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;group&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=scales &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;groupdisplay&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=stack ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;I would like to use RGB color format for 'scales' variables. I used pattern but it won't work&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;Scales variables has&amp;nbsp;7 ordinal scales: 0, 1, 2, 3, 4, 5, 6&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;Any help would be great!&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;BR /&gt;THanks&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;Radhika&lt;/FONT&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Dec 2018 19:58:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-rgb-plot-colors/m-p/518925#M17528</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-12-05T19:58:56Z</dc:date>
    </item>
  </channel>
</rss>

