<?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 Changing color for histogram PROC univariate in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Changing-color-for-histogram-PROC-univariate/m-p/774684#M81106</link>
    <description>&lt;P&gt;I am creating a comparative histograms using the following code. Is there a way to change the color of the histogram bins in this code?&lt;BR /&gt;&lt;BR /&gt;proc univariate data = test;&lt;BR /&gt;CLASS group;&lt;BR /&gt;VAR score;&lt;BR /&gt;HISTOGRAM score / midpoints= -11 to 16 by 4;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Oct 2021 16:42:45 GMT</pubDate>
    <dc:creator>398740</dc:creator>
    <dc:date>2021-10-16T16:42:45Z</dc:date>
    <item>
      <title>Changing color for histogram PROC univariate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Changing-color-for-histogram-PROC-univariate/m-p/774684#M81106</link>
      <description>&lt;P&gt;I am creating a comparative histograms using the following code. Is there a way to change the color of the histogram bins in this code?&lt;BR /&gt;&lt;BR /&gt;proc univariate data = test;&lt;BR /&gt;CLASS group;&lt;BR /&gt;VAR score;&lt;BR /&gt;HISTOGRAM score / midpoints= -11 to 16 by 4;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Oct 2021 16:42:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Changing-color-for-histogram-PROC-univariate/m-p/774684#M81106</guid>
      <dc:creator>398740</dc:creator>
      <dc:date>2021-10-16T16:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: Changing color for histogram PROC univariate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Changing-color-for-histogram-PROC-univariate/m-p/774780#M81107</link>
      <description>You don't have a ton of options within PROC UNIVARIATE to change the colour. You can change your theme which will change the colour, or you can use SGPLOT and the HISTOGRAM statement there. &lt;BR /&gt;&lt;BR /&gt;You may need to play around a bit to get the bins set up correctly again. &lt;BR /&gt;&lt;BR /&gt;proc SGPLOT data=test;&lt;BR /&gt;histogram score / fillattrs=(color=green) binstart=-11 binwidth=4;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/v_017/grstatproc/n17xrpcduau1f8n1c1nhe477pv18.htm#n1vm03quwjchpan1tly8hdq6bdlf" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/v_017/grstatproc/n17xrpcduau1f8n1c1nhe477pv18.htm#n1vm03quwjchpan1tly8hdq6bdlf&lt;/A&gt;</description>
      <pubDate>Mon, 18 Oct 2021 01:30:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Changing-color-for-histogram-PROC-univariate/m-p/774780#M81107</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-10-18T01:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: Changing color for histogram PROC univariate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Changing-color-for-histogram-PROC-univariate/m-p/774857#M81108</link>
      <description>&lt;P&gt;I'd switch to PROC SGPANEL for making the graph. Here is an example :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgpanel data = sashelp.cars;
   panelby origin / layout=rowlattice;
   histogram MPG_City / fillattrs=(color=lightyellow);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 18 Oct 2021 10:55:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Changing-color-for-histogram-PROC-univariate/m-p/774857#M81108</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2021-10-18T10:55:39Z</dc:date>
    </item>
  </channel>
</rss>

