<?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: Different color options for my vbar statement on PROC SGPANEL in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Different-color-options-for-my-vbar-statement-on-PROC-SGPANEL/m-p/226407#M14372</link>
    <description>Hi:&lt;BR /&gt;There is a separate community for ODS GRAPHICS and SAS/GRAPH questions and generally, all the graph folks hang out over there. You might want to consider posting your question over in that community.&lt;BR /&gt;cynthia</description>
    <pubDate>Sat, 19 Sep 2015 00:55:02 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2015-09-19T00:55:02Z</dc:date>
    <item>
      <title>Different color options for my vbar statement on PROC SGPANEL</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Different-color-options-for-my-vbar-statement-on-PROC-SGPANEL/m-p/226340#M14368</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;Please help me out with the SAS code for generating different color bars for my code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my code:&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/228iC339087ABC9EB394/image-size/original?v=mpbl-1&amp;amp;px=-1" alt="Fig 2a New Sep18.jpeg" title="Fig 2a New Sep18.jpeg" border="0" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*Fig 2a;
ods listing close;
ods graphics / reset width=600px height=400px imagename='Fig 2a New Sep18' imagefmt=jpeg;
ods html file='Surg.html' path='C:\Users\smunigal\Desktop\ID-Personal\NIS_Surgery\Tables_Figs' ; 
proc sgpanel data=Panc_cond;
panelby type / layout=columnlattice uniscale=row  novarname spacing=40 
colheaderpos=bottom;
colaxis display =(nolabel);
rowaxis max=150;
/* to keep the bars the same width, add the PROPORTION option */
label  ADJ_PANC ='Rate Per Million';
vbarparm group = ADJ_PANC/ category=GROUP response=ADJ_PANC /
   limitlower=ADJ_PANC_LOW limitupper=ADJ_PANC_HIGH barwidth=0.6;
run;

ods html close;
ods listing;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So basically I need different color for my age group bars;&lt;/P&gt;&lt;P&gt;different color for sex bars;&lt;/P&gt;&lt;P&gt;different color for RACE bars;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot,&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2015 15:49:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Different-color-options-for-my-vbar-statement-on-PROC-SGPANEL/m-p/226340#M14368</guid>
      <dc:creator>smunigala</dc:creator>
      <dc:date>2015-09-18T15:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: Different color options for my vbar statement on PROC SGPANEL</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Different-color-options-for-my-vbar-statement-on-PROC-SGPANEL/m-p/226355#M14369</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods listing close;
ods graphics / reset width=600px height=400px imagename='Fig 2a New Sep18' imagefmt=jpeg;
ods html file='Surg.html' path='C:\Users\smunigal\Desktop\ID-Personal\NIS_Surgery\Tables_Figs' ; 
proc sgpanel data=Panc_cond;
panelby type / layout=columnlattice uniscale=row  novarname spacing=40 
colheaderpos=bottom;
colaxis display =(nolabel);
rowaxis max=150;
/* to keep the bars the same width, add the PROPORTION option */
label  ADJ_PANC ='Rate Per Million';
vbarparm category=GROUP response=ADJ_PANC /
   limitlower=ADJ_PANC_LOW limitupper=ADJ_PANC_HIGH barwidth=0.6;
run;

ods html close;
ods listing;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Here is the updated SAS code. Sorry there were typos in my original statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2015 16:34:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Different-color-options-for-my-vbar-statement-on-PROC-SGPANEL/m-p/226355#M14369</guid>
      <dc:creator>smunigala</dc:creator>
      <dc:date>2015-09-18T16:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: Different color options for my vbar statement on PROC SGPANEL</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Different-color-options-for-my-vbar-statement-on-PROC-SGPANEL/m-p/226362#M14370</link>
      <description>&lt;P&gt;One approach to accomplish what I believe you are looking for is a subgroup but with missing values for the response variable except for a specific level. This does require the data to be presummarized before the graphing procedure. You don't provide any example data but something like this may give you an idea;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data example;
   input type $ group $ adj_panc subgroup ;
datalines;
Age 18-24 10  1
Age 18-24 .   2
Age 18-24 .   3
Age 25-34 .   1
Age 25-34 20  2
Age 25-34 .   3
Age 35-44 .   1
Age 35-44 .   2
Age 35-44 30  3
.;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The idea is that there isn't a value for the other subgroups so they don't get displayed in the stack but are a different level so get assigned a different color.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2015 17:25:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Different-color-options-for-my-vbar-statement-on-PROC-SGPANEL/m-p/226362#M14370</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-09-18T17:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: Different color options for my vbar statement on PROC SGPANEL</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Different-color-options-for-my-vbar-statement-on-PROC-SGPANEL/m-p/226370#M14371</link>
      <description>&lt;P&gt;Thanks for the reply ballard. I am attacging a text file of my excel sheet. Hope this helps how my data is structured.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2015 18:19:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Different-color-options-for-my-vbar-statement-on-PROC-SGPANEL/m-p/226370#M14371</guid>
      <dc:creator>smunigala</dc:creator>
      <dc:date>2015-09-18T18:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: Different color options for my vbar statement on PROC SGPANEL</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Different-color-options-for-my-vbar-statement-on-PROC-SGPANEL/m-p/226407#M14372</link>
      <description>Hi:&lt;BR /&gt;There is a separate community for ODS GRAPHICS and SAS/GRAPH questions and generally, all the graph folks hang out over there. You might want to consider posting your question over in that community.&lt;BR /&gt;cynthia</description>
      <pubDate>Sat, 19 Sep 2015 00:55:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Different-color-options-for-my-vbar-statement-on-PROC-SGPANEL/m-p/226407#M14372</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2015-09-19T00:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: Different color options for my vbar statement on PROC SGPANEL</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Different-color-options-for-my-vbar-statement-on-PROC-SGPANEL/m-p/226413#M14374</link>
      <description>&lt;P&gt;As Cynthia pointed it is a Graph problem. Better post it at Graph Forum.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
infile cards truncover dlm='09'x;
input YEAR : $20.	TYPE : $20.	GROUP : $20.	ADJ_PANC	ADJ_PANC_LOW	ADJ_PANC_HIGH;
cards;
1998-2011	Sex	MALE	50.3	45.03	55.57
1998-2011	Sex	FEMALE	47.83	42.61	53.04				
1998-2011	Age Group	18-24	6.68	5.74	7.63
1998-2011	Age Group	25-34	12.77	11.25	14.29
1998-2011	Age Group	35-44	26.38	23.46	29.29
1998-2011	Age Group	45-54	48.95	43.67	54.23
1998-2011	Age Group	55-64	83	73.68	92.32
1998-2011	Age Group	65+	119.7	106.15	133.24					
1998-2011	Race	BLACK	108.7	87.11	130.3
1998-2011	Race	WHITE	59.44	45.02	73.86
;
run;
proc sgpanel data=have;
panelby type / layout=columnlattice uniscale=row  novarname spacing=40 
colheaderpos=bottom;
colaxis display =(nolabel);
rowaxis max=150;
/* to keep the bars the same width, add the PROPORTION option */
label  ADJ_PANC ='Rate Per Million';
vbarparm category=GROUP response=ADJ_PANC /&lt;STRONG&gt; group=group&lt;/STRONG&gt;
   limitlower=ADJ_PANC_LOW limitupper=ADJ_PANC_HIGH barwidth=0.6;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/236iE538CC347962CF72/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="download.png" title="download.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 19 Sep 2015 06:42:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Different-color-options-for-my-vbar-statement-on-PROC-SGPANEL/m-p/226413#M14374</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2015-09-19T06:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: Different color options for my vbar statement on PROC SGPANEL</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Different-color-options-for-my-vbar-statement-on-PROC-SGPANEL/m-p/226572#M14386</link>
      <description>&lt;P&gt;Thank you all! Ksharp your code works well and thanks for the help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2015 14:57:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Different-color-options-for-my-vbar-statement-on-PROC-SGPANEL/m-p/226572#M14386</guid>
      <dc:creator>smunigala</dc:creator>
      <dc:date>2015-09-21T14:57:15Z</dc:date>
    </item>
  </channel>
</rss>

