<?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: Help with SAS SGPLOT bar graphs with 95% CIs in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Help-with-SAS-SGPLOT-bar-graphs-with-95-CIs/m-p/181078#M6649</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this for your two chart and see if you like it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sgpanel data=YourDataSet;&lt;/P&gt;&lt;P&gt;panelby type / layout=columnlattice uniscale=row; /* to keep the bars the same width, add the PROPORTION option */&lt;/P&gt;&lt;P&gt;vbarparm category=group response=adj_panc / limitlower=adj_panc_low limitupper=adj_panc_high;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to remove the line between the types, use the NOBORDER option on the PANELBY statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Jan 2015 22:57:29 GMT</pubDate>
    <dc:creator>DanH_sas</dc:creator>
    <dc:date>2015-01-13T22:57:29Z</dc:date>
    <item>
      <title>Help with SAS SGPLOT bar graphs with 95% CIs</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Help-with-SAS-SGPLOT-bar-graphs-with-95-CIs/m-p/181077#M6648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am trying to generate bar graphs with 95% CIs for a variable called GROUP. The ADJ_PANC is the estimate and ADJ_PANC_LOW and ADJ_PANC_HIGH are 95% CIs. I would like to get these bar graphs separated by a width for a variable called TYPE. &lt;/P&gt;&lt;P&gt;&lt;BR clear="all" /&gt;Similarly for the second bar graph, I need the graphs separated by a variable called TYPE. However for this, for x-axis I would like to have the group variable labeled in two lines as they are too long.&lt;/P&gt;&lt;P&gt;eg. for BENIGN TUMOR, I need&lt;/P&gt;&lt;P&gt;BENIGN&lt;/P&gt;&lt;P&gt;TUMOR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For MALIGNANT TUMOR, I need&lt;/P&gt;&lt;P&gt;MALIGNANT &lt;BR /&gt;TUMOR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way I can generate this?&lt;/P&gt;&lt;P&gt;I would really appreciate any help with my sas code.&lt;/P&gt;&lt;P&gt;I am attaching a scanned document for what I am looking for exactly. Also I am attaching my raw csv files and sas code, and the graphs which I got with the sas code.&lt;/P&gt;&lt;P&gt;Please do let me know if you have any questions.&lt;/P&gt;&lt;P&gt;Thank you for your time,&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/10749iBDF44FA972EC1C90/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Fig 2a.jpeg" title="Fig 2a.jpeg" /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/10750i9D6B2078B1BD7456/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Fig 2b.jpeg" title="Fig 2b.jpeg" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2015 21:56:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Help-with-SAS-SGPLOT-bar-graphs-with-95-CIs/m-p/181077#M6648</guid>
      <dc:creator>smunigal</dc:creator>
      <dc:date>2015-01-13T21:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: Help with SAS SGPLOT bar graphs with 95% CIs</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Help-with-SAS-SGPLOT-bar-graphs-with-95-CIs/m-p/181078#M6649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this for your two chart and see if you like it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sgpanel data=YourDataSet;&lt;/P&gt;&lt;P&gt;panelby type / layout=columnlattice uniscale=row; /* to keep the bars the same width, add the PROPORTION option */&lt;/P&gt;&lt;P&gt;vbarparm category=group response=adj_panc / limitlower=adj_panc_low limitupper=adj_panc_high;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to remove the line between the types, use the NOBORDER option on the PANELBY statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2015 22:57:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Help-with-SAS-SGPLOT-bar-graphs-with-95-CIs/m-p/181078#M6649</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2015-01-13T22:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: Help with SAS SGPLOT bar graphs with 95% CIs</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Help-with-SAS-SGPLOT-bar-graphs-with-95-CIs/m-p/181079#M6650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="Fig 2a1.jpeg" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/8702_Fig 2a1.jpeg" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Dan,&lt;/P&gt;&lt;P&gt;Your code was helpful. I just need couple of modifications. Would be able to help me with that? I am attaching the figure I got after I used your code.&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; I do not want GROUP on x-axis. Can I remove GROUP from the graph?&lt;/P&gt;&lt;P&gt;2. I do not want Type=Age Group Type=Sex; I just Need Age Group&amp;nbsp; Sex. It would be great if I can get Age Group and Sex on X-axis in place of GROUP.&lt;/P&gt;&lt;P&gt;3. I can control X-axis on sgpanel?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way I can do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would appreciate if you can help me with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2015 15:29:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Help-with-SAS-SGPLOT-bar-graphs-with-95-CIs/m-p/181079#M6650</guid>
      <dc:creator>smunigal</dc:creator>
      <dc:date>2015-01-14T15:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: Help with SAS SGPLOT bar graphs with 95% CIs</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Help-with-SAS-SGPLOT-bar-graphs-with-95-CIs/m-p/181080#M6651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my question no. 3. I meant Y-axis limit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2015 15:30:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Help-with-SAS-SGPLOT-bar-graphs-with-95-CIs/m-p/181080#M6651</guid>
      <dc:creator>smunigal</dc:creator>
      <dc:date>2015-01-14T15:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: Help with SAS SGPLOT bar graphs with 95% CIs</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Help-with-SAS-SGPLOT-bar-graphs-with-95-CIs/m-p/181081#M6652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;For #1, I assume you don't want the label at all, so you can turn it off on the COLAXIS statement:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;COLAXIS display=(nolabel);&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;For #2, use the NOVARNAME option on the PANELBY statement.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;For #3, you can control the axes using the ROWAXIS (y-axis) and the COLAXIS (x-axis) statements.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;The code below is the same as before, with #1 and #2 added:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;proc sgpanel data=YourDataSet;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;panelby type / layout=columnlattice uniscale=row novarname; /* to keep the bars the same width, add the PROPORTION option */&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;colaxis display=(nolabel);&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;vbarparm category=group response=adj_panc / limitlower=adj_panc_low limitupper=adj_panc_high;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2015 15:40:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Help-with-SAS-SGPLOT-bar-graphs-with-95-CIs/m-p/181081#M6652</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2015-01-14T15:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: Help with SAS SGPLOT bar graphs with 95% CIs</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Help-with-SAS-SGPLOT-bar-graphs-with-95-CIs/m-p/181082#M6653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can answer all your questions yourself by looking at the online documentation for SGPANEL.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2015 15:44:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Help-with-SAS-SGPLOT-bar-graphs-with-95-CIs/m-p/181082#M6653</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2015-01-14T15:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: Help with SAS SGPLOT bar graphs with 95% CIs</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Help-with-SAS-SGPLOT-bar-graphs-with-95-CIs/m-p/181083#M6654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi Dan,&lt;/P&gt;&lt;P&gt;Thank you. I used the code and it gives me exactly what I am looking for. Can u guide me how/ where to use PROPORTION to give me bar width the same for all?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2015 16:53:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Help-with-SAS-SGPLOT-bar-graphs-with-95-CIs/m-p/181083#M6654</guid>
      <dc:creator>smunigal</dc:creator>
      <dc:date>2015-01-14T16:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: Help with SAS SGPLOT bar graphs with 95% CIs</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Help-with-SAS-SGPLOT-bar-graphs-with-95-CIs/m-p/181084#M6655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I put it in the comment beside the PANELBY statement so you could add it if your version of SAS supports it. After you add it, your PANELBY statement will look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;panelby type / layout=columnlattice uniscale=row novarname proportion;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2015 18:26:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Help-with-SAS-SGPLOT-bar-graphs-with-95-CIs/m-p/181084#M6655</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2015-01-14T18:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Help with SAS SGPLOT bar graphs with 95% CIs</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Help-with-SAS-SGPLOT-bar-graphs-with-95-CIs/m-p/181085#M6656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use SAS 9.3 and it does not support Proportion option in PANELBY. I am using other option barwidth under vbar options. It does not give me exact same width for all my bars but it is close to what I am looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2015 18:51:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Help-with-SAS-SGPLOT-bar-graphs-with-95-CIs/m-p/181085#M6656</guid>
      <dc:creator>smunigal</dc:creator>
      <dc:date>2015-01-14T18:51:53Z</dc:date>
    </item>
  </channel>
</rss>

