<?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 Problem with GROUP option in SGPLOT in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Problem-with-GROUP-option-in-SGPLOT/m-p/107023#M3978</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I’m having a bit of a problem getting SGPLOT to display different bar colors for me in a waterfall plot.&amp;nbsp; Graphing is not a particular strength of mine but I'm not sure what to make of this message in the log:&lt;/P&gt;&lt;P&gt;“Once a GROUP variable is used in a categorical chart, that GROUP variable must be used in all overlaid charts.&amp;nbsp; The specified GROUP variable has been removed from the graph display.”&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code I’m using isn’t anything crazy and a search of the internet hasn’t provided me any solutions as other publications I've seen use the GROUP option to dynamically change the color of the bars&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I’m using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sgplot data=x;&lt;/P&gt;&lt;P&gt;&amp;nbsp; vbar dummyid/ response=pchg group=nhlpop barwidth=.5;&lt;/P&gt;&lt;P&gt;&amp;nbsp; vline dummyid/ response=CR_PLOT markers markerattrs=(symbol=star size=4 color=green)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lineattrs=(thickness=0);&lt;/P&gt;&lt;P&gt;&amp;nbsp; xaxis display=none;&lt;/P&gt;&lt;P&gt;&amp;nbsp; yaxis values=(-100 to 100 by 50) label='Tumor Size (% Change from Baseline)';&lt;/P&gt;&lt;P&gt;&amp;nbsp; title 'Waterfall Plot: Tumor Size Change Across NHL Types';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NHLPOP is just a numeric field with either a 1 or 2 value.&amp;nbsp; I just want to use the default ODS colors to change the bar colors based on what NHLPOP group they belong to.&lt;/P&gt;&lt;P&gt;Any assistance would be greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Oct 2012 20:48:41 GMT</pubDate>
    <dc:creator>Naruto2012</dc:creator>
    <dc:date>2012-10-25T20:48:41Z</dc:date>
    <item>
      <title>Problem with GROUP option in SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Problem-with-GROUP-option-in-SGPLOT/m-p/107023#M3978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I’m having a bit of a problem getting SGPLOT to display different bar colors for me in a waterfall plot.&amp;nbsp; Graphing is not a particular strength of mine but I'm not sure what to make of this message in the log:&lt;/P&gt;&lt;P&gt;“Once a GROUP variable is used in a categorical chart, that GROUP variable must be used in all overlaid charts.&amp;nbsp; The specified GROUP variable has been removed from the graph display.”&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code I’m using isn’t anything crazy and a search of the internet hasn’t provided me any solutions as other publications I've seen use the GROUP option to dynamically change the color of the bars&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I’m using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sgplot data=x;&lt;/P&gt;&lt;P&gt;&amp;nbsp; vbar dummyid/ response=pchg group=nhlpop barwidth=.5;&lt;/P&gt;&lt;P&gt;&amp;nbsp; vline dummyid/ response=CR_PLOT markers markerattrs=(symbol=star size=4 color=green)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lineattrs=(thickness=0);&lt;/P&gt;&lt;P&gt;&amp;nbsp; xaxis display=none;&lt;/P&gt;&lt;P&gt;&amp;nbsp; yaxis values=(-100 to 100 by 50) label='Tumor Size (% Change from Baseline)';&lt;/P&gt;&lt;P&gt;&amp;nbsp; title 'Waterfall Plot: Tumor Size Change Across NHL Types';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NHLPOP is just a numeric field with either a 1 or 2 value.&amp;nbsp; I just want to use the default ODS colors to change the bar colors based on what NHLPOP group they belong to.&lt;/P&gt;&lt;P&gt;Any assistance would be greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2012 20:48:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Problem-with-GROUP-option-in-SGPLOT/m-p/107023#M3978</guid>
      <dc:creator>Naruto2012</dc:creator>
      <dc:date>2012-10-25T20:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with GROUP option in SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Problem-with-GROUP-option-in-SGPLOT/m-p/107024#M3979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Almost forgot I'm using SAS 9.2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2012 20:53:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Problem-with-GROUP-option-in-SGPLOT/m-p/107024#M3979</guid>
      <dc:creator>Naruto2012</dc:creator>
      <dc:date>2012-10-25T20:53:02Z</dc:date>
    </item>
  </channel>
</rss>

